First of all get to know the json module. The native json module won't work on appengine, so do
import django.utils.simplejson as json
Then, format your to be "json" object(s) as Python dicts,
obj = {"name": "foo", "age": 20}
Then use json.dumps to get an str object, that represents the JSON object.
json_obj = json.dumps(obj)
here, json_obj
is a string, so you can write it using conventional methods. (Try that out in the interactive interpreter)
After that read this page for info on templates in the webapp framework (I use Django, and I'm not sure if webapp uses the same templating system - though it looks similar, so better read up)
If you're talking about the jQuery AJAX POST, you'll have to generate the (X)HTML/XML/whatever on the server side, UNLESS, of course, you're causing some post-POST URL to be loaded in an iframe.
If that did not answer what you wanted, clarify your question a bit. And it is very unlikely IMO that anyone would post the answer with code to jsfiddle.