toJson(mapListOrLiteral,isCompact)¶
Definition¶
String toJson(Object mapListOrLiteral, Boolean isCompact)
Description¶
Returns a string that contains a nested structure of lists/maps or literals present in the script.
Parameter Definition¶
Name | Type | Description |
---|---|---|
mapListOrLiteral | Object | A map, list or literal |
isCompact | Boolean | True if the resulting json should contain minimal white space, false otherwise. |