Package django :: Package utils :: Package simplejson :: Module tool
[hide private]
[frames] | no frames]

Module tool

source code

Using simplejson from the shell to validate and pretty-print:

   $ echo '{"json":"obj"}' | python -msimplejson
   {
       "json": "obj"
   }
   $ echo '{ 1.2:3.4}' | python -msimplejson
   Expecting property name: line 1 column 2 (char 2)

Note that the JSON produced by this module's default settings is a subset of YAML, so it may be used as a serializer for that as well.

Functions [hide private]
 
main() source code

Imports: django