2023년 12월 4일 오전 11:50
The examples below assume the following JSON object is contained in the variable object-a
:
{ "a": "one", "b": "", "c": "three", "d": { "e": "four", "f": [ "five", "six", true, false, null ], "g": { "x": "max", "y": "may", "z": "maize" } } }
[<object-a>jsonset[d],[Jaguar]]
[<object-a>jsonset[d],[f],[Panther]]
[<object-a>jsonset[d],[f],[-1],[Elephant]]
[<object-a>jsonset[d],[f],[-2],[Elephant]]
[<object-a>jsonset[d],[f],[-4],[Elephant]]
[<object-a>jsonset[Panther]]
[<object-a>jsonset[]]
The examples below assume the following JSON object is contained in the variable object-b
:
{"a":"one","b":"","c":1.618,"d":{"e":"four","f":["five","six",true,false,null]}}
[<object-b>jsonset[]]
[<object-b>jsonset[],[Antelope]]
[<object-b>jsonset:number[],[not a number]]
[<object-b>jsonset[id],[Antelope]]
[<object-b>jsonset[missing],[id],[Antelope]]
[<object-b>jsonset:notatype[id],[Antelope]]
[<object-b>jsonset:boolean[id],[false]]
[<object-b>jsonset:boolean[id],[Antelope]]
[<object-b>jsonset:number[id],[42]]
[<object-b>jsonset:null[id]]
[<object-b>jsonset:array[d],[f],[5]]
[<object-b>jsonset:object[d],[f],[5]]
[<object-a>] [<object-b>] :and[jsonset[b],[two]]