Returns a JSON object from a Map element.
1 json.fromMap
<json.fromMap>
<map /> !
</json.fromMap>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Emap | Object java.util.HashMap.. |
Returns | |
---|---|
Type | Description |
JsonObject | Returns the JSON obejct from the entry Map. |
Example
Copy
<xsql-script name='test_json_fromMap'> <body> <println> <json.fromMap> <map> <item><string>a</string><number>1</number></item> <item><string>b</string><number>2</number></item> <item><string>c</string><number>3</number></item> </map> </json.fromMap> </println> </body> </xsql-script>
Copy
{ "b" : 2, "c" : 3, "a" : 1 }