ios - accessing json content from dictionary -


I have a dictionary that contains Jason data. I am not able to handle the data inside it. I tried to calculate but fails This is the data format I'm refunding using NSLog: 2013-03-21 12: 48: 36.973 [2]: [article = "Other shoes on the surface are going to drop: Full Windows 8, Intel Core -Cowered Surface leads to stores in just a few weeks. "; Id = 2; Title = "Microsoft Surface Pro hits America and Canada"; } 2013-03-21 12: 48: 36.974 Cell Items [21009: c07] {article = "Hit by the rising demand of Samsung devices, iPhone will lose smartphone market share for the current quarter, says a City analyst"; Id = 3; Title = "iPhone to Shade Market Share"; } 2013-03-21 12: 48: 36.974 Cell Items [21009: c07] {article = "The carrier says that in an effort to promote its spectrum, the Atlantic tele-network, aka Altetel, from the wireless spectrum and the network's Is planning to buy the property. "; Id = 4; Title = "AT & T spends $ 780 million"; }

I find that I am returning the array of a dictionary. How can I access those elements and elements?

It seems that your article is the key in the form of ID and the title, the object in the loop on the bus Use:

* I assume that you have a class that has been called a sales item and the above logs are from each object

 For {code> (SalesItem * Item In Sales ITEM) {NSG (@ "Article:% @", Object [@ "article"]); NSLog (@ "id:% @", object [@ "id"]); NSLog (@ "Title:% @", Object [@ "Title"]); }    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -