Skip to content
Discussion options

You must be logged in to vote

Hi Marcus,

The member you are trying to add to must exist first.
This is according to the RFC (https://datatracker.ietf.org/doc/html/rfc6902#section-4.1):

"For example, an "add" with a target location of "/a/b" starting with this document:

{ "a": { "foo": 1 } }

is not an error, because "a" exists, and "b" will be added to its
value. It is an error in this document:

{ "q": { "bar": 2 } }

because "a" does not exist."

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ayende
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants