Skip to content

Bug: JSONObject constructor with JSONTokener ignores JSONParserConfiguration of JSONTokener #947

@Simulant87

Description

@Simulant87

Current behavior:
When configuring a JSONParserConfiguration and setting it to JSONTokener, and then passing this Tokener to create a JSONObject, the JSONParserConfiguration is ignored, as it internally creates a new JSONParserConfiguration, which is used instead.

Expected behaviour the JSONParserConfiguration from the JSONTokener should be used. The existing getter for the JSONParserConfiguration on the JSONTokener could be used, making it not deprecated as suggested in #941

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions