Skip to content

Instantly share code, notes, and snippets.

@remh
Created December 5, 2013 18:12
Show Gist options
  • Select an option

  • Save remh/7810379 to your computer and use it in GitHub Desktop.

Select an option

Save remh/7810379 to your computer and use it in GitHub Desktop.
import simplejson as json
content = """{
"glossary": {
"title": "example glossary",
"GlossDiv": {
"title": "S",
"GlossList": {
"GlossEntry": {
"ID": "SGML",
"SortAs": "SGML",
"GlossTerm": "Standard Generalized Markup Language",
"Acronym": "SGML",
"Abbrev": "ISO 8879:1986",
"GlossDef": {
"para": "A meta-markup language, used to create markup languages such as DocBook.",
"GlossSeeAlso": ["GML", "XML"]
},
"GlossSee": "markup"
}
}
}
}
}"""
python_content = json.loads(content)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment