Returns a JSON object from an Array.
1 json.fromArray
<json.fromArray>
<array /> !
</json.fromArray>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Earray | Object java.util.ArrayList. |
Returns | |
---|---|
Type | Description |
JsonObject | Returns the JSON object from the entry Array. |
Example
Copy
<xsql-script name='test1_json_fromArray'> <body> <println> <json.fromArray> <array> <string>a</string> <string>b</string> <string>c</string> </array> </json.fromArray> </println> </body> </xsql-script>
Copy
[ "a", "b", "c" ]