005 json dom navigation

✓ Passing This code compiles and runs correctly.

Code

input.k

Actual

key name
key age
key tags
key meta
fields=4
have tags
tag x
tag y
tag z
tags=3
lang=koru
age=36
len=4
{"name":"ada","age":36,"tags":["x","y","z"],"meta":{"lang":"koru"}}

Expected output

key name
key age
key tags
key meta
fields=4
have tags
tag x
tag y
tag z
tags=3
lang=koru
age=36
len=4
{"name":"ada","age":36,"tags":["x","y","z"],"meta":{"lang":"koru"}}

Flows

flow ~dom.parse click a branch to expand · @labels scroll to their anchor
dom.parse (input: "{\"name\":\"ada\",\"age\":36,\"tags\":[\"x\",\"y\",\"z\"],\"meta\":{\"lang\":\"koru\"}}")

Test Configuration

MUST_RUN LANGUAGES: zig