diff --git a/docs/user/ppl/functions/json.rst b/docs/user/ppl/functions/json.rst index ffef550c9c..fb6a398b05 100644 --- a/docs/user/ppl/functions/json.rst +++ b/docs/user/ppl/functions/json.rst @@ -51,15 +51,17 @@ Return type: BOOLEAN/DOUBLE/INTEGER/NULL/STRUCT/ARRAY Example:: > source=json_test | where json_valid(json_string) | eval json=json(json_string) | fields test_name, json_string, json - fetched rows / total rows = 4/4 - +---------------------+------------------------------+---------------+ - | test_name | json_string | json | - |---------------------|------------------------------|---------------| - | json object | {"a":"1","b":"2"} | {a:"1",b:"2"} | - | json array | [1, 2, 3, 4] | [1,2,3,4] | - | json scalar string | "abc" | "abc" | - | json empty string | | null | - +---------------------+------------------------------+---------------+ + fetched rows / total rows = 6/6 + +---------------------+-------------------------------------+-----------------------------+ + | test_name | json_string | json | + |---------------------|-------------------------------------|-----------------------------| + | json nested object | {"a":"1","b":{"c":"2","d":"3"}} | {a:"1",b:{c:"2",d:"3"} | + | json nested list | {"a":"1","b":[{"c":"2"},{"c":"3"}]} | {a:"1",b:[{c:"2"},{c:"3"}]} | + | json object | {"a":"1","b":"2"} | {a:"1",b:"2"} | + | json array | [1, 2, 3, 4] | [1,2,3,4] | + | json scalar string | "abc" | "abc" | + | json empty string | | null | + +---------------------+-------------------------------------+-----------------------------+ JSON_EXTRACT ____________