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

JSON.parse 在解析字符串时,遇到非JSON字符不报错 #4515

Open
lunfangyu opened this issue Jul 10, 2024 · 0 comments
Open

JSON.parse 在解析字符串时,遇到非JSON字符不报错 #4515

lunfangyu opened this issue Jul 10, 2024 · 0 comments

Comments

@lunfangyu
Copy link

最新版本:FASTJSON 1.2.83

JSON.parse("200a") 会抛异常;
JSON.parse("200") 则不抛异常,这是为什么呢?为什么这么处理?FASTJSON有没有提供判断字符串是否为JSON字符串的方法?

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

1 participant