Fixed design flaw in JsonIO.write.
Minor changes to JsonParser to provide symmetric JsonIO.read.