JSON

This module define functions to serialize and unserialize objects to and from JSON format.

dumps(obj)

Returns a bytearray containing the JSON representation of obj.

Raises JSONError when obj contains non serializable objects.

loads(data)

Returns the object represented in JSON format inside the byte sequence data.