Hey Jyoti,

The purpose of JSON is to serialize a data structure. And
serialization basically means storing it as a string (which is
represented by bytes). Other methods of serialization are yaml or xml.
For more advanced data structures like custom objects you can use the
pickle module.

The datastore actually converts most (if not all) data to strings
before it stores it, so you shouldn't worry too much about that.

- Koen

On Jul 10, 11:44 pm, Jyoti Shete-Javadekar <jyoti.javade...@gmail.com>
wrote:
> Hi,
> I am trying to insert a key value pair map in a datastore as one of the
> columns of a model. I found some implementations of a custom datastore data
> type for a dictionary. I was wondering if JSON object could be inserted
> instead of having a custom datatype. I tried json dumps to insert a json
> object as a string.
>
> Is there any way to directly store/retrive a json object w/o converting in
> string?
>
> Thanks,
> Jyoti
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to