Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Some invalid JSON can result in a StringIndexOutOfBoundsException instead of a ParseException #2

@RogueLogix

Description

@RogueLogix

Given the invalid json string { // a StringIndexOutOfBoundsException will be generated as the parser will skip to the end of the line, past the end of the string, and attempt to access the character at index 5. I would expect to get a ParseException in this case, not the StringIndexOutOfBoundsException that is raised.

note: sorry about the notif being weird, i hit the wrong keys because IDE

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