Click here to Skip to main content
15,920,602 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I have a JSON Response that has a JSONArray (“data”), it has thousand objects, and each object has 8 Key/Value pair’s values.

Here is my JSON Response

http://pastebin.com/qJraV4ka

I want to store the response in the Java Data Structure from where I want to insert these records in to the SQLite Database.
I also want get the first and last object of the record that is stored in the data structure, then I want to get the properties of that object.
Which Data Structure is best for the above mentioned scenario and give some suggestion to do this with another way.
Posted
Comments
Sergey Alexandrovich Kryukov 8-Oct-15 13:43pm    
JSON is itself a data structure. What's the problem?
—SA

1 solution

Please see my comment to the question. Your problem is not quite clear. You can use, for example, this open-source library: https://github.com/google/gson[^].

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900