First version with seemingly working JSONWriter; first unit test