python - How can I parse JSON in Google App Engine? -
I want to parse a JSON string in an object under Google App Engine (Python). what do you recommend? Some words / strings will also be good for transcribing, do you recommend joining your app, or a library? is it safe? Thank you. Consider using
, which is included with GAE. Import simple json as jjson # from Django.utils # Load object from string obj = json.loads (string)
Above Links are examples of Django's serializer, and here's the link.
If you are looking for Python Class to process examples or objects (contrary to the compositions of lists, strings, numbers and dictionaries), then you probably want to see.
I hope it helps.
Incidentally, to get Django 1.0 (instead of DJ ango 0.96) to run on GAE, you can use the following call in your main.py, copy:
Edit_library ('django', '1.0')
from google.appengine.dist Edit: Google App Engine 1.6 with Python 2.7
as Google App Engine 1.6.0, you can import runtime: python27
in app.yaml
, and then you can import import json
. Native JSON library with
Comments
Post a Comment