【发布时间】:2021-04-14 05:02:00
【问题描述】:
我从 String 获取两个 json 时遇到问题:
{"doc":{"sheet":{"english":{"link":"http://localhost?id=123&format=pdf"}}}}{"doc":{"term":{"english":{"link":"http://localhost?id=12&format=pdf"}}}}
我尝试使用 simple-json,但它无法处理两个 json,并说 {{{{ 是非法的。我也在考虑将它(但通过什么)以某种方式拆分为两个字符串,然后创建 json。任何想法如何解决它?
【问题讨论】:
-
尝试使用 JSONArray,这里是一个例子:stackoverflow.com/a/33754239/10802597
-
这首先是怎么发生的?你不能解决这个问题的根源而不是解决它吗?
-
@luk2302 不行,我就是这样,改不了