2019-01-17 09:24:42 +01:00
|
|
|
{
|
2019-01-17 13:08:40 +01:00
|
|
|
"name": "to_json",
|
2019-01-17 09:24:42 +01:00
|
|
|
"type": "function",
|
2020-07-02 01:46:48 +01:00
|
|
|
"groups": ["Maps"],
|
2019-01-17 09:24:42 +01:00
|
|
|
"description": "Create a JSON formatted string from a map, array or other value.",
|
2022-01-13 08:56:17 -05:00
|
|
|
"arguments": [{
|
|
|
|
"arg": "value",
|
|
|
|
"description": "The input value"
|
|
|
|
}],
|
|
|
|
"examples": [{
|
2024-05-09 12:47:09 +03:00
|
|
|
"expression": "to_json(map('1','one','2','two'))",
|
|
|
|
"returns": "{\"1\":\"one\",\"2\":\"two\"}"
|
2022-01-13 08:56:17 -05:00
|
|
|
}, {
|
|
|
|
"expression": "to_json(array(1,2,3))",
|
|
|
|
"returns": "[1,2,3]"
|
|
|
|
}],
|
|
|
|
"tags": ["formatted", "json", "array", "create", "other", "map"]
|
2019-01-17 09:24:42 +01:00
|
|
|
}
|