Using json.dumps I can convert a dictionary to json format like this:
>>> from json import dumps
>>> dumps({'height': 100, 'title': 'some great title'})
'{"title": "some great title", "height": 100}'
However, I'm looking to turn my dictionary into a javascript literal, like this:
{title: "some great title", height: 100}
(Notice there are no double quotes around title and height.)
Is there a Python library to do this?