diff --git a/docs/user/ppl/functions/json.rst b/docs/user/ppl/functions/json.rst index bbc972ba73..77d9d00f45 100644 --- a/docs/user/ppl/functions/json.rst +++ b/docs/user/ppl/functions/json.rst @@ -50,12 +50,13 @@ 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 = 5/5 + +---------------------+---------------------------------+-------------------------+ + | test_name | json_string | json | + |---------------------|---------------------------------|-------------------------| + | json nested object | {"a":"1","b":{"c":"2","d":"3"}} | {a:"1",b:{c:"2",d:"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 | + +---------------------+---------------------------------+-------------------------+