-
Notifications
You must be signed in to change notification settings - Fork 511
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[BUG][v2.0.2]JSON.parseArray解析有问题? #235
Comments
是你的json不符合格式,多了一个 '}',不过报错信息不够友好,这个后面会完善。 |
@wenshao 那两种解析都应该报错吧, |
wenshao
added a commit
that referenced
this issue
May 27, 2022
wenshao
added a commit
that referenced
this issue
May 27, 2022
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
问题描述
简要描述您碰到的问题。
![image](https://user-images.githubusercontent.com/9798724/168223873-3b23f980-88f4-4bcf-ad66-b2c1ff82a7ae.png)
① 处多了右花括号
② 通过解析为对象集合List
③ 通过解析为对象集合过程正确,但解析结果为2个
④ 通过解析为json对象数组JSONArray
⑤ 通过解析为json对象数组过程异常
环境信息
请填写以下信息:
重现步骤
如何操作可以重现该问题:
期待的正确结果
对您期望发生的结果进行清晰简洁的描述。
### 两种方式结果能够一致
要么都解析失败,要么解析成功并且个数是1个
相关日志输出
请复制并粘贴任何相关的日志输出。
附加信息
如果你还有其他需要提供的信息,可以在这里填写(可以提供截图、视频等)。
The text was updated successfully, but these errors were encountered: