Skip to content

JSONTokener getter/setter for JSONParserConfiguration needs work #941

Description

@stleary

The 20250107 release of the strictMode feature includes JSONTokener getter and setter methods for the JSONParserConfiguration instance. These methods are no longer needed since the config instance has been added to the JSONTokener constructor. In particular, the setter could allow a developer to introduce unexpected behavior. Other solutions may be possible, but the following is recommended:

Getter: Annotate @deprecated. Otherwise, it's probably harmless, no change.
Setter: Annotate @deprecated. Consider silently ignoring the param if it is null.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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