I have an API that gives the following JSON data as a response.
{
"status": 200,
"error": false,
"user": [
{
"id": "1",
"nama": "Jane Doe",
"handphone": "081234567890",
"email": "janedoe@gmail.com",
"nama_bisnis": "Permata Cell",
"pekerjaan": "Wirausaha",
"fb_id": "Jane Doe",
"ig_id": "@jane_doe",
"no_wa": "0812345678",
"komentar": "",
"user": "http://agenproduk.dianarthaselaras.com/user_img/1.jpeg"
},
{
"id": "8",
"nama": "Arifin",
"handphone": "janedoe@gmail.com",
"email": "081234567890",
"nama_bisnis": "tripay",
"pekerjaan": "pengusaha",
"fb_id": "",
"ig_id": "",
"no_wa": "",
"komentar": "",
"user": ""
}
]
}
How to find the size of the user
array from the response & set it to a textview
.
Any example would be helpful.