Added a simple json writer.
Merge pull request #2 from otruffer/add_json_writer

Added a simple json writer.