054 json parse in module

✓ Passing This code compiles and runs correctly.

Code

input.k

Supporting Files

lib.k

Actual

mod ada|36|2
mod BAD 14: missing field 'age'
mod valid [1,{"a":true},null]

Expected output

mod ada|36|2
mod BAD 14: missing field 'age'
mod valid [1,{"a":true},null]

Flows

flow ~greet click a branch to expand · @labels scroll to their anchor
greet (body: "{\"name\":\"ada\",\"age\":36,\"tags\":[\"a\",\"b\"],\"junk\":{}}")
flow ~greet click a branch to expand · @labels scroll to their anchor
greet (body: "{\"name\":\"zed\"}")
flow ~scan click a branch to expand · @labels scroll to their anchor
scan (body: "[1,{\"a\":true},null]")

Test Configuration

MUST_RUN