This is the example of data which contains around 100,000 objects approx.
{"data":
{"1":
{"1":
{"value":"something"},
"2":
{"value":"something"}
}
}
}
I am getting above data in Java, currently I am using JSONObject to store these and return to JavaScript for display. Now what I want to do is to use Java classes instead of JSONObjects to save memory footprint on whole system as the number of objects can be more than 12 million which is basically 12 million hash objects to store POJOs.
Problem How to create class structure for dynamic names so that when I use Gson to convert classes to JSONObject it gives something like above sample data. Specifically the names 1,2,... n. If possible, please leave a comment if you don't like or understand or the question is wrong.