JSONReplaceExpr ::= "replace" "json" "value" "of" PrimaryExpr ( "(" ExprSingle ")" )+ "with" ExprSingle
jerr:JNUP0008
is raised. After this evaluation, two cases can appear for interpreting the last "(" ExprSingle ")":
replace json value of $o($s) with $c
jerr:JNUP0007
is raised upon failure).
jupd:replace-in-object($o, $s, $c)
. An error JNUP:0016
is raised if $o does not contain a pair with the key $s.
replace json value of $a($i) with $c
jerr:JNUP0007
is raised upon failure).
jupd:replace-in-array($a, $i, $c)
. An error JNUP:0016
is raised if $i is out of the range of array $a.
replace json value of $o("foo") with 5 replace json value of $a(3) with 25