how to read json within json in ios -


i have being fetched, need read whats inside data under sources

  "id": "cus_7ndkzw63kvtuy5",   "object": "customer",   "account_balance": 0,   "created": 1453839669,   "currency": "usd",   "default_source": "card_17xdje2ezvkylo2cbnnle4ym",   "delinquent": false,   "description": null,   "discount": null,   "email": "someone@example.com",   "livemode": false,   "metadata": {   },   "shipping": null,   "sources": {     "object": "list",     "data": [       {         "id": "card_17xdje2ezvkylo2cbnnle4ym",         "object": "card",         "address_city": null,         "address_country": null,         "address_line1": null,         "address_line1_check": null,         "address_line2": null,         "address_state": null,         "address_zip": null,         "address_zip_check": null,         "brand": "visa",         "country": "us",         "customer": "cus_7ndkzw63kvtuy5",         "cvc_check": "pass",         "dynamic_last4": null,         "exp_month": 12,         "exp_year": 2016,         "funding": "credit",         "last4": "4242",         "metadata": {         },         "name": "someone@example.com",         "tokenization_method": null       }     ],     "has_more": false,     "total_count": 1,     "url": "/v1/customers/cus_7ndkzw63kvtuy5/sources"   },   "subscriptions": {     "object": "list",     "data": [      ],     "has_more": false,     "total_count": 0,     "url": "/v1/customers/cus_7ndkzw63kvtuy5/subscriptions"   } } 

try code array

 [[[[result objectforkey:@"sources"] objectforkey:@"data"] objectatindex:0] objectforkey:@"country"]; 

you answer.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -