On Fri, Apr 8, 2011 at 12:07 PM, Daniel Fetchinson
<[email protected]> wrote:
> If you have a json object, you probably got it from a python object
> which was json-able and you serialized it using the json/simplejson
> module.

That is indeed not actually true, you might be getting the JSON from
any remote source or different software.

JSONEncode by itself can only encode/decode base types not any kind of object.
I understood that he wants to encode/decode his own objects, which
would required to subclass the .default method of the JSONEncoder or
find a way to extract the object as a dict.

> If this is so, what stops the OP from using the
> json/simplejson module to decode back to python?
>

As far as I understood his only problem is actually that he has to
serialize/deserialize objects instead of base types.

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to