mirror of
https://github.com/DaveGamble/cJSON
synced 2024-12-23 23:22:09 +00:00
Merge commit '48b390994642e59eb1a461922a646b4c6544693c' into develop
This commit is contained in:
commit
b00ecfd311
@ -55,6 +55,21 @@
|
|||||||
"expected": "bar",
|
"expected": "bar",
|
||||||
"disabled": true },
|
"disabled": true },
|
||||||
|
|
||||||
|
{ "comment": "replace object document with array document?",
|
||||||
|
"doc": {},
|
||||||
|
"patch": [{"op": "add", "path": "", "value": []}],
|
||||||
|
"expected": [] },
|
||||||
|
|
||||||
|
{ "comment": "replace array document with object document?",
|
||||||
|
"doc": [],
|
||||||
|
"patch": [{"op": "add", "path": "", "value": {}}],
|
||||||
|
"expected": {} },
|
||||||
|
|
||||||
|
{ "comment": "append to root array document?",
|
||||||
|
"doc": [],
|
||||||
|
"patch": [{"op": "add", "path": "/-", "value": "hi"}],
|
||||||
|
"expected": ["hi"] },
|
||||||
|
|
||||||
{ "comment": "Add, / target",
|
{ "comment": "Add, / target",
|
||||||
"doc": {},
|
"doc": {},
|
||||||
"patch": [ {"op": "add", "path": "/", "value":1 } ],
|
"patch": [ {"op": "add", "path": "/", "value":1 } ],
|
||||||
|
Loading…
Reference in New Issue
Block a user