Skip to content

Required Enhancement Enforce String Keys #13

Description

@jredfox

change JSONObject to extends LinkedHashMap<String, Object> this will prevent non string keys. I Would also suggest overriding all put methods to check for null keys as JSON Specification according to https://jsoneditoronline.org/ JSON null keys are not allowed.

I believe this is the easiest way to fix the string keys for the current library. I can't do it that way for evilnotchlib as everything is compiled with JSONObject being <Object, Object>

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