parse_json_array
The parse_json_array
function parses a string and returns a JSON array.
Syntax
parse_json_array( json )
Arguments
Argument | Description |
---|---|
json
|
(string) The input string to parse. |
Returns
(LuaJsonArray). A LuaJsonArray containing the JSON data.
See Also
If you can't be sure whether the input data is a JSON array, you can use the function parse_json to parse the JSON. The parse_json function returns a LuaJsonValue, which can represent a JSON array or a JSON object.