Created
June 1, 2011 18:09
-
-
Save elishowk/1002906 to your computer and use it in GitHub Desktop.
_json_response instaed of modifying jsonify
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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