Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

1.2.75 JSONValidator JSON识别错误 #4405

Open
Ritaaa09 opened this issue Jun 2, 2023 · 1 comment
Open

1.2.75 JSONValidator JSON识别错误 #4405

Ritaaa09 opened this issue Jun 2, 2023 · 1 comment

Comments

@Ritaaa09
Copy link

Ritaaa09 commented Jun 2, 2023

JSONValidator validator = JSONValidator.from("[{\"a\":\"1\"\"b\":\"2\"}]");
System.out.println(validator.validate());

字符串不是JSON格式,但识别结果为true

@dongguo4812
Copy link

JsonArray类型 使用JSON.toJSONString(jsonArray)生成的json串,如: [{"name":"测试部门1","ownerUserId":14776,"pid":14856}]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants