Needed example of .toStringArray()

Its reference states: “(All values in the array must be of the String type.)”

However your JSONArray contains an JSONObject and not a string, which isn’t valid:
[{"id": "1"}]

Should be instead something like this:
[ "id", "1" ]

2 Likes