GSON to Fetch/Parse JSON in Android
This tutorial will cover how to fetch JSON from assets folder and parse it. We will use GSON, a JSON parsing library developed by Google, to quickly parse the JSON into Java objects with very minimal work required.
1 2 3 |
dependencies { compile 'com.google.code.gson:gson:2.8.0' // Latest as of April 2017 } |