Question 1

I cannot understand principles of adding Content-Lenght by server….
<init-param> <!- Optional, defaults to 0 ->

if this param equal to 0 (by default - server must return Content-Lenght, am I right? How to force return Content-Lenght in response (according to spec)?

Question 2

can you give me little sample with using json instead of xml?
is it json-rpc or just json?