diff --git a/docs/user_manual/expressions/expression_help/Maps.rst b/docs/user_manual/expressions/expression_help/Maps.rst index 4cd8973875f..fbd6453a581 100644 --- a/docs/user_manual/expressions/expression_help/Maps.rst +++ b/docs/user_manual/expressions/expression_help/Maps.rst @@ -21,7 +21,7 @@ Loads a JSON formatted string. * - Arguments - * **string** - JSON string * - Examples - - * ``from_json('{"qgis":"rocks"}')`` → { 'qgis': 'rocks' } + - * ``from_json('{"1":"one","2":"two"}')`` → { '1': 'one', '2': 'two' } * ``from_json('[1,2,3]')`` → [1,2,3] @@ -252,7 +252,7 @@ Merge map elements into a hstore-formatted string. * - Arguments - * **map** - the input map * - Examples - - * ``map_to_hstore(map('qgis','rocks'))`` → '"qgis"=>"rocks"' + - * ``map_to_hstore(map('1','one','2','two'))`` → '"1"=>"one"','"2"=>"two"' .. end_map_to_hstore_section @@ -272,7 +272,7 @@ Merge map elements into a HTML definition list string. * - Arguments - * **map** - the input map * - Examples - - * ``map_to_html_dl(map('qgis','rocks'))`` →
qgis
rocks
+ - * ``map_to_html_dl(map('1','one','2','two'))`` →
1
one
2
two
.. end_map_to_html_dl_section @@ -292,7 +292,7 @@ Merge map elements into a HTML table string. * - Arguments - * **map** - the input map * - Examples - - * ``map_to_html_table(map('qgis','rocks'))`` →
qgis
rocks
+ - * ``map_to_html_table(map('1','one','2','two'))`` →
12
onetwo
.. end_map_to_html_table_section @@ -312,7 +312,7 @@ Create a JSON formatted string from a map, array or other value. * - Arguments - * **value** - The input value * - Examples - - * ``to_json(map('qgis','rocks'))`` → {"qgis":"rocks"} + - * ``to_json(map('1','one','2','two'))`` → {"1":"one","2":"two"} * ``to_json(array(1,2,3))`` → [1,2,3]