I recommend to use GSON, this works as well, but it is only for showcase and i do not support it anymore.
ModelParser is tiny library for android JSON parsing. Not use any 3rd party library, it has zero dependencies.
- can parse a JSONObject into a custom class fields recursively
- can convert a custom class to a JSONObject recursively
Android api 4.3+:
Add to dependencies:
implementation 'com.github.gerp83:ModelParser:1.01'
Very good examples can be found in the demo folder.
I hope this can make your job easier, happy auto parsing!