Skip to content

Commit fc54879

Browse files
m-kuhnnirvn
authored andcommittedJan 18, 2019
Add function docs for load_json and write_json
1 parent 0e5268b commit fc54879

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
 
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "load_json",
3+
"type": "function",
4+
"description": "Loads a JSON formatted string.",
5+
"arguments": [
6+
{"arg":"string", "description":"JSON string"}],
7+
"examples": [
8+
{"expression":"load_json('{\"qgis\":\"rocks\"}')", "returns":"{ \"qgis\" : \"rocks\" }"},
9+
{"expression":"load_json('[1,2,3]')", "returns":"[1,2,3]"}
10+
]
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "write_json",
3+
"type": "function",
4+
"description": "Create a JSON formatted string from a map, array or other value.",
5+
"arguments": [
6+
{"arg":"value", "description":"The input value"}],
7+
"examples": [
8+
{ "expression":"write_json(map('qgis','rocks'))", "returns":"{\"qgis\":\"rocks\"}"},
9+
{ "expression":"write_json(array(1,2,3))", "returns":"[1,2,3]"}
10+
]
11+
}

0 commit comments

Comments
 (0)
Please sign in to comment.