cherrypy._json module

JSON support.

Expose preferred json module as json and provide encode/decode convenience functions.

cherrypy._json.decode(s, _w=<built-in method match of _sre.SRE_Pattern object>)

Return the Python representation of s (a str instance containing a JSON document).

cherrypy._json.encode(value)[source]

Encode to bytes.