bluelinelabs / LoganSquare

Screaming fast JSON parsing and serialization library for Android.
Apache License 2.0
3.21k stars 306 forks source link

How to convert JSONArray string to arraylist of objects? #215

Closed ashwindmk closed 6 years ago

ashwindmk commented 7 years ago
[
    {
        "title": "...",
        "description": "..."
    },
    {
        "title": "...",
        "description": "..."
    },
    {
        "title": "...",
        "description": "..."
    }
]
raychong commented 7 years ago

List<YourObject> list = LoganSquare.parseList(jsonString, YourObject.class);

ashwindmk commented 6 years ago

Thanks a lot, it works.