ujson – JSON encoding and decoding

This module implements a subset of the corresponding CPython module, as described below. For more information, please refer to the original CPython documentation: json.

This module allows conversion between Python objects and JSON data formats.

Function

dump

ujson.dump(obj, stream)

Serialize obj into a JSON string and write it to the given stream.

dumps

ujson.dumps(obj)

Returns obj represented as a JSON string.

ujson.load(stream)
ujson.loads(str)