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
Traverse immediate children, if one exists, or add one if not using with() and withArray()
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.
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.