Your error doesn't have anything to do with your question. This is a simple matter of Python namespacing: the function is json.dumps
not json_dumps
.
However, json
has been a part of the standard library since 2.5. simplejson
is a separate library. Unless you know you need it, you should use json
.