With #1980 there are new methods/overloads for withArray() and with(), which take JsonPointer.
The old methods that take String should be retrofitted in 2.x so that:
- If argument is valid
JsonPointer (that is, starts with leading '/` or is empty String ""), it should be used as such
- Only if argument is not a valid
JsonPointer, should it check existing property.
For Jackson 3.0 we can just drop the check and expect valid JsonPointer String representation.
The reason for change is to make expected main use case work, while retaining reasonable backwards-compatibility.
With #1980 there are new methods/overloads for
withArray()andwith(), which takeJsonPointer.The old methods that take
Stringshould be retrofitted in 2.x so that:JsonPointer(that is, starts with leading '/` or is empty String ""), it should be used as suchJsonPointer, should it check existingproperty.For Jackson 3.0 we can just drop the check and expect valid
JsonPointerString representation.The reason for change is to make expected main use case work, while retaining reasonable backwards-compatibility.