Fixes THRIFT-2210 -- java TSimpleJSONProtocol emits invalid JSON

I've added a patch to https://issues.apache.org/jira/browse/THRIFT-2210 as well, not sure which you prefer.