私はそのようなjsonを持っています:
[ { "id": "c200", "name": "Ravi Tamada", "email": "ravi@gmail.com", "address": "xx-xx-xxxx,x - street, x - country", "gender" : "male", "phone" : "+91 0000000000" },
{ "id": "c201", "name": "Hero", "email": "ravi@gmail.com", "address": "xx-xx-xxxx,x - street, x - country", "gender" : "male", "phone" : "+90 0000000000" }]
そのjsonをWebサービスから取得する方法を知りたいです。私はそれについていくつかのチュートリアルを知っていますが、jsonは常にそれが好きです:
{ "contacts": [ { "id": "c200", "name": "Ravi Tamada", "email": "ravi@gmail.com", "address": "xx-xx-xxxx,x - street, x-country", "gender" : "male", "phone" : "00 000000" },
{ "id": "c201", "name": "Johnny Depp", "email": "johnny_depp@gmail.com", "address": "xx-xx-xxxx,x - street, x - country", "gender" : "male", "phone" : "00 000000", } ] }
しかし、「連絡先」でデータを取得するのは好きではありません。「連絡先」内のデータを取得したいだけです。「ID」、「名前」を意味します....誰が私を助けてくれますか!