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
The JSON pointer implementation in 2.3 is a big part of an RFC 6902 patch implementation. I was hoping maybe to also see add(JsonPointer, JsonNode) and remove(JsonPointer) methods on JsonNode. All of the operations in the spec can be built on top of these in a higher level JSON patch implementation.
It looks like the mutating operations are usually further down in the array and object node implementations, but I thought maybe it made sense for the patch operations that take a JsonPointer to be on JsonNode to make them easier to call.
The text was updated successfully, but these errors were encountered:
The main design criteria here is that JsonNode only contains read methods, not mutation methods. This allows potential immutable JsonNode implementations.
The JSON pointer implementation in 2.3 is a big part of an RFC 6902 patch implementation. I was hoping maybe to also see
add(JsonPointer, JsonNode)
andremove(JsonPointer)
methods onJsonNode
. All of the operations in the spec can be built on top of these in a higher level JSON patch implementation.It looks like the mutating operations are usually further down in the array and object node implementations, but I thought maybe it made sense for the patch operations that take a
JsonPointer
to be onJsonNode
to make them easier to call.The text was updated successfully, but these errors were encountered: