Bugfix. Basic JSON support (input/output) now implemented. Not 100%
finished yet.