Changed JsonEncoder to not prefix output with spaces.

Starting from the second object JsonEncoder added a space character to
each serialised object it generated (as pointed out in issue #152). This
commit changes the configuration of the JSON generator used by
JsonEncoder to not output these spaces.