JsonPointer.empty()
should NOT indicate match of a property with key of ""
#788
Milestone
JsonPointer.empty()
should NOT indicate match of a property with key of ""
#788
Currently the "empty"
JsonPointer
instance (obtained byJsonPointer.empty()
or trying to compile empty String (zero-length)) is distinct from one that matches empty property name,/
, regarding behavior.Empty
JsonPointer
matches the current node whereas one with "empty property" would match value of JSON Object with empty String. Specifically, for JSON Object like:JsonPointer.empty()
would match JSON Object itselfJsonPointer.compile("")
would match the String valuetext
However: currently (as of 2.13), empty
JsonPointer
:getMatchingProperty()
true
formayMatchProperty()
matchProperty("")
Of these, first 2 cases should be fixed.
It is understood that there may be backwards-compatibility challenges in changing the behavior: however, handling of the "empty"
JsonPointer
is important for proper handling of traversal.The text was updated successfully, but these errors were encountered: