Skip to content

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

@xuliang0825

Description

@xuliang0825

问题描述

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfixed

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions