Skip to content

Not helpfull error when JSONPointer can't find path #345

@ryber

Description

@ryber

Describe the bug
When a JSONPointer fails to find a path you get an error of "May only query JSONObject or JSONArray", because that chunk of the path didn't exist.

To Reproduce
new JSONPointer("/somewhere").queryFrom(new JSONObject("{"foo": "bar"}"))

Expected behavior
a better error that details that the path was missing.

Metadata

Metadata

Assignees

Labels

BugOh Noes! A bug

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions