mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
Add function docs for load_json and write_json
This commit is contained in:
parent
0e5268b501
commit
fc548795a8
11
resources/function_help/json/load_json
Normal file
11
resources/function_help/json/load_json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "load_json",
|
||||
"type": "function",
|
||||
"description": "Loads a JSON formatted string.",
|
||||
"arguments": [
|
||||
{"arg":"string", "description":"JSON string"}],
|
||||
"examples": [
|
||||
{"expression":"load_json('{\"qgis\":\"rocks\"}')", "returns":"{ \"qgis\" : \"rocks\" }"},
|
||||
{"expression":"load_json('[1,2,3]')", "returns":"[1,2,3]"}
|
||||
]
|
||||
}
|
11
resources/function_help/json/write_json
Normal file
11
resources/function_help/json/write_json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "write_json",
|
||||
"type": "function",
|
||||
"description": "Create a JSON formatted string from a map, array or other value.",
|
||||
"arguments": [
|
||||
{"arg":"value", "description":"The input value"}],
|
||||
"examples": [
|
||||
{ "expression":"write_json(map('qgis','rocks'))", "returns":"{\"qgis\":\"rocks\"}"},
|
||||
{ "expression":"write_json(array(1,2,3))", "returns":"[1,2,3]"}
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user