Why does my Json parse fail with following error?
JSON from Web API
[{"CUSTJOBID":1,"JOBDT":"2020-11-18T00:00:00","JobFromAdd":"TT4 6PX","JobToAdd":"GH8 7HH"}]
KOTLIN CODE to PASRSE
val jsonarray = JSONArray(response.toString())
App error of type
java.lang.String
cannot be converted to JSONArray