Json
This package provides a JSON parser.
{ "type": "library"}Install
Section titled “Install”{ "dependencies": { "Json": "pen:///json" }}Json'Decode module
Section titled “Json'Decode module”No types are defined.
Functions
Section titled “Functions”Decode
Section titled “Decode”Decode a string into a JSON value.
\(s string) Value | errorJson'Encode module
Section titled “Json'Encode module”No types are defined.
Functions
Section titled “Functions”Encode
Section titled “Encode”Encode a JSON value.
\(v Value) stringJson'Value module
Section titled “Json'Value module”A JSON value
type Value { # ...}A raw JSON value represented by built-in types
type Raw = boolean | none | number | string | [Value] | {string: Value}Functions
Section titled “Functions”Create a JSON value.
\(r Raw) ValueGet a raw value.
\(v Value) Raw