Skip to content

Commit

Permalink
Add function docs for load_json and write_json
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn authored and nirvn committed Jan 18, 2019
1 parent 0e5268b commit fc54879
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions resources/function_help/json/load_json
Original file line number Diff line number Diff line change
@@ -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 changes: 11 additions & 0 deletions resources/function_help/json/write_json
Original file line number Diff line number Diff line change
@@ -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]"}
]
}

0 comments on commit fc54879

Please sign in to comment.