toJSONArray

fun String.toJSONArray(): JSONArray

Converts the given JSON string representation to a JSONArray object.

Return

A JSONArray instance parsed from the string.

Throws

if the string is not a valid JSON array representation.