diff --git a/tests/06_json_nested.claro b/tests/06_json_nested.claro new file mode 100644 index 0000000..949d01c --- /dev/null +++ b/tests/06_json_nested.claro @@ -0,0 +1,8 @@ +SET text TO "{\"a\":[1,2,{\"b\":\"hi there\"}]}" +PARSE JSON text AS obj +GET obj KEY "a" AS arr +GET arr AT 3 AS third +GET third KEY "b" AS b +SAY b +MAKE JSON obj AS out +SAY out