Closed
Description
Currently one can either:
- Locate a descendant node using
at()
OR - Traverse immediate children, if one exists, or add one if not using
with()
andwithArray()
but not something that would combine utility. But perhaps it would be enough to overload with()
to take JsonPointer
, and work similar to with
except possible create longer path.
We might as well overload withArray()
as well.
This will supercede #393.
EDIT: let's call methods withObject()
and withArray()
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.
Metadata
Metadata
Assignees
Labels
No labels