Encoding
Encode and decode JSON, and decode CSV.
csvdecode
csvdecode(str) → list(map(string))Decode a CSV string into a list of maps (first row = headers).
| Parameter | Type | Description |
|---|---|---|
str | string |
jsondecode
jsondecode(str) → anyDecode a JSON string into a value.
| Parameter | Type | Description |
|---|---|---|
str | string |
jsonencode
jsonencode(value) → stringEncode a value as a JSON string.
| Parameter | Type | Description |
|---|---|---|
value | any |
jsonencode({name = "alice", age = 30})→ "{\"name\":\"alice\",\"age\":30}"