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 re.Pattern object>, _PY3=True)

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

cherrypy._json.encode(value)[source]

Encode to bytes.