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
Post a Comment