You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JSON Pointer provided by the Jakarta JSON Processing is designed to conform to RFC 6901.
RFC 6901 shows us the syntax of JSON Pointer as follows:
escaped = "~" ( "0" / "1" )
This means any tilde not followed by "0" or "1" is illegal and such case should be judged as a syntax error. Please note that tilde character is excluded from unescaped definition.
However Json#createPointer() in the Reference Implementation does not throw JsonException for the illegal input such as /~2 and treats such tilde as a normal character.
The API Javadoc of createPointer says:
JsonException - if jsonPointer is not a valid JSON Pointer
This is not a request to fix the problem. I just want to know whether this is a bug or an intended behavior.
Thank you.
The text was updated successfully, but these errors were encountered:
JSON Pointer provided by the Jakarta JSON Processing is designed to conform to RFC 6901.
RFC 6901 shows us the syntax of JSON Pointer as follows:
This means any tilde not followed by "0" or "1" is illegal and such case should be judged as a syntax error. Please note that tilde character is excluded from
unescaped
definition.However
Json#createPointer()
in the Reference Implementation does not throwJsonException
for the illegal input such as/~2
and treats such tilde as a normal character.The API Javadoc of
createPointer
says:This is not a request to fix the problem. I just want to know whether this is a bug or an intended behavior.
Thank you.
The text was updated successfully, but these errors were encountered: