I have this JSON file :
[{"Id":"1","name":"Bryan"}]
But I don't know how to achieve this in Android. I've tried this:
val url = "url of my website"
Then this:
var json=JSONObject(values[1])
val id = json.getJSONArray("Id")
val name = json.getJSONObject("name")
var.text = name
But it does not work. I would like to know where's the error.