The parse_json_array
function parses a string and returns a JSON array.
parse_json_array( json )
Argument | Description |
---|---|
json
|
(string) The input string to parse. |
(LuaJsonArray). A LuaJsonArray containing the JSON data.
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.
|