keen/json
SourceThis is a standard module
and does not need to be explicitly imported.
json unionnull record (has private fields)to-json[t] specfrom-json[t] speclist-new json(args json[])If no arguments are passed this is
null. Otherwise it is a JSON array. For an empty array, use empty-array or ()::json[]subscript json(a json, key symbol)If a is an object containing the key key, returns the associated value. Returns null if any of these is true: * a is not an object. * a is an object, but does not have key. * a is an object with the key, and its value is null.
Most code does not care about this distinction. If you do, you can test if json-object a or if has-key a, key.
jsoncan be constructed directly usingnamed-new