Files
Claro/tests/06_json_nested.claro

9 lines
175 B
Plaintext

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