19 lines
502 B
Plaintext

{
"name": "to_json",
"type": "function",
"groups": ["Maps"],
"description": "Create a JSON formatted string from a map, array or other value.",
"arguments": [{
"arg": "value",
"description": "The input value"
}],
"examples": [{
"expression": "to_json(map('1','one','2','two'))",
"returns": "{\"1\":\"one\",\"2\":\"two\"}"
}, {
"expression": "to_json(array(1,2,3))",
"returns": "[1,2,3]"
}],
"tags": ["formatted", "json", "array", "create", "other", "map"]
}