We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a27a73c commit 096d46dCopy full SHA for 096d46d
tests.json
@@ -90,9 +90,10 @@
90
"patch": [{"op": "add", "path": "/bar", "value": null}],
91
"expected": {"foo": 1, "bar": null} },
92
93
- { "doc": {"foo": 1},
+ { "comment": "0 can be an array index or object element name",
94
+ "doc": {"foo": 1},
95
"patch": [{"op": "add", "path": "/0", "value": "bar"}],
- "error": "Array operation on object target" },
96
+ "expected": {"foo": 1, "0": "bar" } },
97
98
{ "doc": ["foo"],
99
"patch": [{"op": "add", "path": "/1", "value": "bar"}],
0 commit comments