So, I have this JSON, which then extracts my activity into a string:
{"popular": {"authors_last_month": [ { "url":"http://activeden.net/user/OXYLUS", "item":"OXYLUS", "sales":"1148", "image":"http://s3.envato.com/files/15599.jpg" }, { "url":"http://activeden.net/user/digitalscience", "item":"digitalscience", "sales":"681", "image":"http://s3.envato.com/files/232005.jpg" } { ... } ], "items_last_week": [ { "cost":"4.00", "thumbnail":"http://s3.envato.com/files/227943.jpg", "url":"http://activeden.net/item/christmas-decoration-balls/75682", "sales":"43", "item":"Christmas Decoration Balls", "rating":"3", "id":"75682" }, { "cost":"30.00", "thumbnail":"http://s3.envato.com/files/226221.jpg", "url":"http://activeden.net/item/xml-flip-book-as3/63869", "sales":"27", "item":"XML Flip Book / AS3", "rating":"5", "id":"63869" }, { ... }], "items_last_three_months": [ { "cost":"5.00", "thumbnail":"http://s3.envato.com/files/195638.jpg", "url":"http://activeden.net/item/image-logo-shiner-effect/55085", "sales":"641", "item":"image logo shiner effect", "rating":"5", "id":"55085" }, { "cost":"15.00", "thumbnail":"http://s3.envato.com/files/180749.png", "url":"http://activeden.net/item/banner-rotator-with-auto-delay-time/22243", "sales":"533", "item":"BANNER ROTATOR with Auto Delay Time", "rating":"5", "id":"22243"}, { ... }] } }
It can be accessed here , although this is because it is a rather long line, I cropped above to display what is needed.
Basically, I want to have access to the items from "items_last_week" and create a list of them - initially my plan was to have a "thumbnail" on the left with a "item" next to it, but today, playing with the SDK seems too complicated or impossible to achieve this, so I would be more than happy just having the "item" data from the "items_last_week" in the list.
Based on php, I try my best to use any of the JSON libraries that are available for Java, as this is apparently much larger than the line of code I will need to deserialize (I think the right word) is JSON, and they all need some form of additional class besides the JSONArray / JSONObject script, I don’t like the fact that items_last_week is nested (again, I think the JSON terminology) and awfully long time to run on the Android emulator.
So, essentially, I need a (preferably a simple) way to pass items_last_week data to a ListView. I understand that I will need a custom adapter that I can probably work around, but I can’t understand, no matter how much time I spent trying to figure out how to access some parts of the JSON string.