GQL: I'm storing JSON in the DataStore. All json is getting converted to html entities, how to avoid

Posted by fmsf on Stack Overflow See other posts from Stack Overflow or by fmsf
Published on 2010-04-08T11:50:17Z Indexed on 2010/04/08 11:53 UTC
Read the original article Hit count: 240

Filed under:
|
|

The tittle says most:

I'm storing JSON in the DataStore. All json is getting converted to html entities, how can I avoid this?

Original I had

myJson = db.StringProperty()

it complained the json i had was to long and StringProperty had a limit of around 500 chars. Sugesting to use TextProperty instead.

It inserted without problems but now myJson looks like this when i fetch it from the database:

{ "timeUnit": "14", "taskCounter": "0", "dependencyCounter": "0", "tasks": [], "dependencies": []}

Any sugestions?

© Stack Overflow or respective owner

Related posts about gql

Related posts about JSON