Skip to content

Instantly share code, notes, and snippets.

@dhruvbaldawa
Created September 8, 2012 18:00
Show Gist options
  • Save dhruvbaldawa/3678069 to your computer and use it in GitHub Desktop.
Save dhruvbaldawa/3678069 to your computer and use it in GitHub Desktop.
JSON decoding
request_dict = {}
for key, value in json_decoded_dict.iteritems():
try:
request_dict[key] = json.loads(value)
except:
request_dict[key] = value
return request_dict
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment