On 10-Oct-07, at 6:49 PM, Alberto Ruiz wrote:
> We´re sending JSON from the server to the client to avoid xml  
> generation and parsing. Wich I find more complex. The server side  
> is written in python, so sending the values is just a matter of  
> encoding them into json, which is pretty simple.
>
> Decoding JSON from python would require a JSON parser, and I would  
> like to avoid that as long as we can.

You're printing out JSON by hand?

The "simplejson" Python encoder/decoder looks pretty, well, simple. :)
http://undefined.org/python/#simplejson
Docs: http://svn.red-bean.com/bob/simplejson/tags/simplejson-1.7/docs/ 
index.html
Looks like it's recommended by Yahoo.. http://developer.yahoo.com/ 
python/python-json.html


_______________________________________________
Cherokee mailing list
[email protected]
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee

Reply via email to