lundi 25 juillet 2016

Find object from json

I have one json look like this. { "countrycode" : [["11","","91","INDIA"," New Delhi"], ["112","Mahanagar Telephone Nigam Ltd (MTNL]","91","INDIA"," New Delhi"], ["113","Reliance Communications Ltd","91","INDIA"," New Delhi"], ["114","Bharti Airtel Ltd","91","INDIA"," New Delhi"], ["115","Sistema Shyam TeleServices Ltd (MTS]","91","INDIA"," New Delhi"], ["122","","91","INDIA"," Hapur Ghaziabad"], ["1222","Bharat Sanchar Nigam Ltd (BSNL]","91","INDIA"," Hapur Ghaziabad"], ["1223","Reliance Communications Ltd","91","INDIA"," Hapur Ghaziabad"]] } and i want to find perfect matched record with first row of json with my value. My value may be "1178920" or "1130123" or "1151593248" or "1223798". If i my value is will 1223798 than return me ["1223","Reliance Communications Ltd","91","INDIA"," Hapur Ghaziabad"]] I can't find way please help me.

Aucun commentaire:

Enregistrer un commentaire