JanetDocsSourcePlaygroundTutorialsI'm Feeling luckyCommunityGitHub sign in
(import spork/json) (def input `` {"name": "person", "unknown": null, "happy": true, "sad": false} ``) When calling, the json dictionary becomes a mutable table in janet. (json/decode input) @{"happy" true "name" "person" "sad" false "unknown" :null} pass `true` as the first arg, and json keys become janet keywords. (json/decode input true) @{:happy true :name "person" :sad false :unknown :null} pass `true` as the second arg, and json keys that map to `null` are not hydrated. (json/decode input true true) @{:happy true :name "person" :sad false}