13 lines
397 B
Plaintext
Raw Normal View History

{
"name": "to_json",
"type": "function",
2020-07-02 01:46:48 +01:00
"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('qgis','rocks'))", "returns":"{\"qgis\":\"rocks\"}"},
{ "expression":"to_json(array(1,2,3))", "returns":"[1,2,3]"}
]
}