Google App Engine: Python: WebOb: How to get POST data in JSON format?
问题 I am building a web app on the Google App Engine platform, which uses webapp2, which uses WebOb. I would like to POST some data in JSON format, including nested arrays and dictionaries. E.g.: $.post('/addvendor', {'vendor': {'name': 'test', 'description': 'a good company', 'tags':['foo', 'bar']}}, function(data){console.log(data)}, 'application/json') However, on the server side, the data comes in as a flat "MultiDict" object, not anything like the original nested JSON object that I POST ed.