Abstract the json functions into a separate module
authorIustin Pop <iustin@google.com>
Mon, 21 Apr 2008 13:01:54 +0000 (13:01 +0000)
committerIustin Pop <iustin@google.com>
Mon, 21 Apr 2008 13:01:54 +0000 (13:01 +0000)
commit0e10ea67d4b7596886c1a3ef8402de42ad432faf
treea1dccc404758e154c396755c77dfb283c5e5f8a2
parentb8b3adeb95e0ff31ce5284e2fa090bbbff43bfdc
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]