Skip to content

Instantly share code, notes, and snippets.

@elishowk
Created June 1, 2011 18:09
Show Gist options
  • Save elishowk/1002906 to your computer and use it in GitHub Desktop.
Save elishowk/1002906 to your computer and use it in GitHub Desktop.
_json_response instaed of modifying jsonify
def _json_response(responsedict={}, statuscode=200):
return make_response(
json.dumps(dict(responsedict)),
statuscode,
None,
'application/json',
'application/json')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment