Abstract the json functions into a separate module
authorIustin Pop <iustin@google.com>
Mon, 21 Apr 2008 13:04:57 +0000 (13:04 +0000)
committerIustin Pop <iustin@google.com>
Mon, 21 Apr 2008 13:04:57 +0000 (13:04 +0000)
commit8d14b30de885c9531ad7d2b365f5fd473b8702e1
tree886e6acb1a52037601d0fe9827e1cedfa8d9716d
parente7c6e02b036e6fc311cf886b28598c3cc18af795
Abstract the json functions into a separate module

This simple patch adds a new module that holds the simplejson functions
for serialization/deserialization. This reduces the amount of redundant
code.

The patch also adds some normalizations to the json output:
  - the output text will always have an EOL as last char
  - extra spaces before EOL are removed

Reviewed-by: ultrotter
lib/Makefile.am
lib/cmdlib.py
lib/config.py
lib/objects.py
lib/serializer.py [new file with mode: 0644]