Skip to content
This repository was archived by the owner on Sep 4, 2023. It is now read-only.

Latest commit

 

History

History
25 lines (17 loc) · 695 Bytes

File metadata and controls

25 lines (17 loc) · 695 Bytes

I recommend to use GSON, this works as well, but it is only for showcase and i do not support it anymore.

ModelParser

ModelParser is tiny library for android JSON parsing. Not use any 3rd party library, it has zero dependencies.

What it can do

  • can parse a JSONObject into a custom class fields recursively
  • can convert a custom class to a JSONObject recursively

Requirements:

Android api 4.3+:

Add to dependencies:

implementation 'com.github.gerp83:ModelParser:1.01'

Examples

Very good examples can be found in the demo folder.

Lisence

wtfpl

I hope this can make your job easier, happy auto parsing!