Skip to content

Commit 09231fb

Browse files
committed
Fix doctest
Signed-off-by: Andrew Carbonetto <[email protected]>
1 parent 423365b commit 09231fb

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/user/ppl/functions/json.rst

+8-8
Original file line numberDiff line numberDiff line change
@@ -79,21 +79,21 @@ Example:
7979

8080
os> source=people | eval result = json_object('key', 123.45) | fields result
8181
fetched rows / total rows = 1/1
82-
+------------------+
83-
| result |
84-
+------------------+
85-
| {"key":123.45} |
86-
+------------------+
82+
+-----------------+
83+
| result |
84+
|-----------------|
85+
| {'key': 123.45} |
86+
+-----------------+
8787

8888
os> source=people | eval result = json_object('outer', json_object('inner', 123.45)) | fields result
8989
fetched rows / total rows = 1/1
9090
+------------------------------+
9191
| result |
92-
+------------------------------+
93-
| {"outer":{"inner":123.45}} |
92+
|------------------------------|
93+
| {'outer': {'inner': 123.45}} |
9494
+------------------------------+
9595

96-
os> source=people | eval result = json_object('array_doc', json_array(123.45, "string", true, null)) | fields result
96+
source=people | eval result = json_object('array_doc', json_array(123.45, "string", true, null)) | fields result
9797
fetched rows / total rows = 1/1
9898
+------------------------------------------------+
9999
| result |

0 commit comments

Comments
 (0)