jyotishb
asked on
JSON Serialization in Python
Hi,
Can someone give me a simple example how to use JSON serialization in Python?
Can someone give me a simple example how to use JSON serialization in Python?
If the silence continues it is probably due to the fact that we don't know what the question means. Of course if one of us does know then you are in luck. I Googled "JSON Serialization" so I at least now know what JSON is, but serialization???
ASKER
well, JSON is a serialization format, now if u ask me what does serialization means, then i guess i m asking the question in a wrong place .. :)
look here...
http://www.djangoproject.com/documentation/serialization/
look here...
http://www.djangoproject.com/documentation/serialization/
So serialization is converting some data structure(s) to an ascii stream for transmission / storage. Similar to pickling or marshalling. JSON is a language with representations of dictionaries and lists almost identical to Python's represention of lists and dictionaries. JSON serializations is used e.g. by AJAX. Are we on the same page so far?
Are you looking for a 3rd party module/package that can be used from Python to perform this serialization?
Are you looking for a 3rd party module/package that can be used from Python to perform this serialization?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
...and here are some examples of how to use simplejson: http://svn.red-bean.com/bob/simplejson/tags/simplejson-1.3/docs/index.html