Skip to content

Instantly share code, notes, and snippets.

@bkeating
Created September 1, 2017 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bkeating/d0d58fd51f125f975cc21b640087f930 to your computer and use it in GitHub Desktop.
Save bkeating/d0d58fd51f125f975cc21b640087f930 to your computer and use it in GitHub Desktop.
// How do I go from this...
"{u'type': u'object', u'properties': {u'first_floor': u'open'}}"
// to a json object...
{"type": "object", "properties": { "first_floor": "open" }}
@bkeating
Copy link
Author

bkeating commented Sep 1, 2017

You do it by serializing further up. In my case, in django rest framework. See: https://stackoverflow.com/a/28200902/352452

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment