Skip to content

Commit

Permalink
QGIS does rock, but we need comprehensive examples
Browse files Browse the repository at this point in the history
  • Loading branch information
uclaros authored and nyalldawson committed May 9, 2024
1 parent 03f9678 commit 1055904
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions resources/function_help/json/from_json
Expand Up @@ -8,8 +8,8 @@
"description": "JSON string"
}],
"examples": [{
"expression": "from_json('{\"qgis\":\"rocks\"}')",
"returns": "{ 'qgis': 'rocks' }"
"expression": "from_json('{\"1\":\"one\",\"2\":\"two\"}')",
"returns": "{ '1': 'one', '2': 'two' }"
}, {
"expression": "from_json('[1,2,3]')",
"returns": "[1,2,3]"
Expand Down
4 changes: 2 additions & 2 deletions resources/function_help/json/map_to_hstore
Expand Up @@ -8,8 +8,8 @@
"description": "the input map"
}],
"examples": [{
"expression": "map_to_hstore(map('qgis','rocks'))",
"returns": "'\"qgis\"=>\"rocks\"'"
"expression": "map_to_hstore(map('1','one','2','two'))",
"returns": "'\"1\"=>\"one\"','\"2\"=>\"two\"'"
}],
"tags": ["formatted", "hstore", "elements", "map", "merge"]
}
4 changes: 2 additions & 2 deletions resources/function_help/json/map_to_html_dl
Expand Up @@ -8,8 +8,8 @@
"description": "the input map"
}],
"examples": [{
"expression": "map_to_html_dl(map('qgis','rocks'))",
"returns": "<dl><dt>qgis</dt><dd>rocks</dd></dl>"
"expression": "map_to_html_dl(map('1','one','2','two'))",
"returns": "<dl><dt>1</dt><dd>one</dd><dt>2</dt><dd>two</dd></dl>"
}],
"tags": ["formatted", "map", "html"]
}
4 changes: 2 additions & 2 deletions resources/function_help/json/to_json
Expand Up @@ -8,8 +8,8 @@
"description": "The input value"
}],
"examples": [{
"expression": "to_json(map('qgis','rocks'))",
"returns": "{\"qgis\":\"rocks\"}"
"expression": "to_json(map('1','one','2','two'))",
"returns": "{\"1\":\"one\",\"2\":\"two\"}"
}, {
"expression": "to_json(array(1,2,3))",
"returns": "[1,2,3]"
Expand Down

0 comments on commit 1055904

Please sign in to comment.