I have previously used GSON, which automatically transfers the data as long as my custom object has a variable with the same name. However, this time, I'm also intrested in the name, or ID, of the object. The object only contains a single long. Example of how it looks:
{"1":123,
"2":124,
"4":125,
"5":126,
"6":127}
As you can see, the list don't necessarily contain all sequent IDs so I cannot just create a list. How would you solve the problem?