Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// 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

This comment has been minimized.

Copy link
Owner 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
You can’t perform that action at this time.