objective c - Retrieve Values from Dictionary inside NSDictionary in iOS -


how can retrieve values json below?

"itemid": 115,   "name": "test items receive",   "description": "recevive",   "itemcode": "aaa-rc-it1",   "quantity":9000,   "warehouselocationid": 560,   "transactiondate": "\/date(-62135596800000+0530)\/",   "transactiontime": "pt11h9m0.6074603s",   "comment": null,   "username": "virtual",   "customeritem": {     "itemid": 0,     "itemcode": null,     "description": null,     "customerid": 10004   }, 

i have done till username, not working customeritem.

dicionaryname[@"key"][@"key"][@"key"] , on. if supply pretty printed json helpful. parsing use nsjsonserialization class.

edit:

to item id ,

dictionaryname[@"customeritem"][@"itemid"] 

to item code:

dictionaryname[@"customeritem"][@"itemcode"] 

and on.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -