Add method(s) in JsonNode
that works like combination of at()
and with()
: withObject(...)
and withArray(...)
#1980
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Currently one can either:
at()
ORwith()
andwithArray()
but not something that would combine utility. But perhaps it would be enough to overload
with()
to takeJsonPointer
, and work similar towith
except possible create longer path.We might as well overload
withArray()
as well.This will supercede #393.
EDIT: let's call methods
withObject()
andwithArray()
to indicate the expected node type to create. It will also be necessary to indicate allowed "replacement mode" in possible case of existing path being incompatible (f.ex expected path node being a scalar value), to determine whether to Replace the existing node (with Object/Array) or throw exception.The text was updated successfully, but these errors were encountered: