Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 2.0.53 解析有注释的JSON的时候出错 #2983

Open
xuliang0825 opened this issue Sep 25, 2024 · 0 comments
Open

[BUG] 2.0.53 解析有注释的JSON的时候出错 #2983

xuliang0825 opened this issue Sep 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@xuliang0825
Copy link

问题描述

String text = """
 {
    "a": {
            "key": 1    // test
    }
}
""";
System.out.println(JSONObject.parseObject(text).toString());

上面的JSON包含注释,使用 2.0.53 版本运行的时候报错,但是 2.0.52 版本是正常的

@xuliang0825 xuliang0825 added the bug Something isn't working label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant