I have a very simple JSON format:
[
{"a_id":"1","a_title":"Clanek 1","a_content":"To je prvi clanek!","s_id":"1"},
{"a_id":"2","a_title":"Clanek 2","a_content":"To je drugi clanek!","s_id":"2"},
{"a_id":"3","a_title":"Clanek 3","a_content":"To je tretji clanek!","s_id":"3"}
]
I want to parse it with GSON and iterate through it line by line. Let's say I want to first get the first line and call a_id, a_title, a_content...then the second line and so on.
I have read the Gson documentation and looked at some examples but I can't figure out how to do this. I will appreciate some help very much.
0 comments:
Post a Comment