>> I guess my big question would be this: Why not use simplejson, which
>> includes encode/decode functions as part of the module?
>>
>
> Simplejson as the json module should only encode/decode data
> structures, not objects.
>
> I think that there should be a way to automate it for any type of
> object by using the pickle protocol (not the pickle module, but the
> protocol/interface), otherwise accessing the __dict__ should work but
> it isn't a very clean way to do it and must also be done recursively.

I don't get this either, just like Michael.

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. If this is so, what stops the OP from using the
json/simplejson module to decode back to python?

Cheers,
Daniel


-- 
Psss, psss, put it down! - http://www.cafepress.com/putitdown

-- 
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