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.
obj into a JSON string and write it to the given stream.
obj represented as a JSON string.
Parse the given stream, interpret it as a JSON string and deserialize the data into Python objects. Return the result object.
The parsing continues until the end of the file is encountered. If the data in the stream is not formed correctly, a ValueError will be raised.
Parse the JSON str and return an object. If the string format is wrong, ValueError is raised.