不能使用(google.gson)jsonParser将字符串解析为jsonObject

时间:2018-04-02 10:59:56

标签: java json jsonparser

我想将我的字符串输入解析为json,然后从中获取项目,因此我添加了此代码:

{id:15, organizationNameGE:55, organizationNameEN:5656, cardNumber:6767, startDate:02/04/2018, period:5, endDate:02/10/2018, priority:not so important, $$hashKey:19A, comment:comment, mail:mail}

这是我的JsonData:

[time 00:00] Transaction A starts writing a big batch of data;
             marking rows with timestamp [00:00].
[time 00:02]     Transaction B starts writing a small amount of data;
                 going to mark rows with timestamp [00:02].
[time 00:03]     Transaction B finishes writing and commit happens.
[time 00:10]         Export is done to the remote part of the system. 
                     Isolation level is ReadCommitted, so it gets know only data from transaction B, timestamp 00:02.
[time 00:15] Transaction A finishes writing and commit happens.
             Remote system never receves this data(!)

我正在使用此库来解析com.google.gson.JsonParser;但当我尝试进行此操作时,我收到此错误: com.google.gson.stream.MalformedJsonException:第1行第89列的未终止对象路径$ .startDate 我HVAE从字符串中移除了所有空间我应该在这里找到这个错误吗?

0 个答案:

没有答案
相关问题