Skip to content
Permalink
Browse files

Add function docs for load_json and write_json

  • Loading branch information
m-kuhn authored and nirvn committed Jan 18, 2019
1 parent 0e5268b commit fc548795a8f3e99d8802cd99eb95c651a64aeec3
Showing with 22 additions and 0 deletions.
  1. +11 −0 resources/function_help/json/load_json
  2. +11 −0 resources/function_help/json/write_json
@@ -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]"}
]
}
@@ -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.
You can’t perform that action at this time.