from django.utils import simplejson ... class Myfunc(webapp.RequestHandler): def post(self): ... value = simplejson.dumps([{'key':'ky', 'value':key}]) self.response.content_type='application/json' self.response.out.write(value) return