1 .. _api.webapp2_extras.json: 2 3 JSON 4 ==== 5 .. module:: webapp2_extras.json 6 7 This is a wrapper for the :py:mod:`json` module: it will use simplejson if 8 available, or the ``json`` module from Python >= 2.6 if available, and as a 9 last resource the ``django.utils.simplejson`` module on App Engine. 10 11 It will also escape forward slashes and, by default, output the serialized 12 JSON in a compact format, eliminating white spaces. 13 14 Some convenience functions are also available to encode and decode to and from 15 base64 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