1.. _api.webapp2_extras.json:
2
3JSON
4====
5.. module:: webapp2_extras.json
6
7This is a wrapper for the :py:mod:`json` module: it will use simplejson if
8available, or the ``json`` module from Python >= 2.6 if available, and as a
9last resource the ``django.utils.simplejson`` module on App Engine.
10
11It will also escape forward slashes and, by default, output the serialized
12JSON in a compact format, eliminating white spaces.
13
14Some convenience functions are also available to encode and decode to and from
15base64 and to quote or unquote the values.
16
17.. autofunction:: encode
18.. autofunction:: decode
19.. autofunction:: b64encode
20.. autofunction:: b64decode
21.. autofunction:: quote
22.. autofunction:: unquote
23
24
25.. _Tornado: http://www.tornadoweb.org/
26