fastjson2 icon indicating copy to clipboard operation
fastjson2 copied to clipboard

[BUG]JSONValidator.from(str).validate()结果错误

Open lihangfu opened this issue 2 months ago • 1 comments

问题描述

String str = "{"你好":"text"},"; System.out.println(JSONValidator.from(str).validate()); 我认为这是一个非法的JSON,然后输出结果为true

重现步骤

String str = "{\"你好\":\"text\"},";
System.out.println(JSONValidator.from(str).validate());

期待的正确结果

false

相关日志输出

true

lihangfu avatar Jun 12 '24 07:06 lihangfu