Skip to content

JSONObject["111"] is a JSONArray. #148

Open

Description

@hongliang5623

Jenkins and plugins versions report

Environment
Paste the output here

What Operating System are you using (both controller, and any agents involved in the problem)?

any system use java 1.8

Reproduction steps

JSONObject obj = new net.sf.json.JSONObject();
obj.put("b", "[111]");
obj.put("a", "[call]");
obj.toString()

Expected Results

{"b":"[111]","a":"[call]"}

Actual Results

{"b":[111],"a":"[call]"}

Anything else?

No response

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions