Skip to content

Creating JSONObject accept character after closing bracket. #448

Description

@jagdeep85

Why is following statement is legal ? Shouldn't it be a parsing error (JSONException) ?

JSONObject obj = new JSONObject("{}whateverishere") ;
System.out.println(obj);

This is a valid statement and print on '{}' ?

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