# gson
4 posts
JSON Parsing in Kotlin — Which Library Should You Use?
A side-by-side comparison of org.json, Gson, Moshi, Kotlin Serialization, and Jackson for JSON parsing in Kotlin.
Kotlin
JSON Parsing in Java — Which Library Should You Use?
A side-by-side comparison of org.json, Gson, Moshi, and Jackson for JSON parsing in Java — with recommendations for Android, backend, and new projects.
Java
JSON Parsing in Kotlin — Parsing with Gson
Parse a complex JSON response using Gson with Kotlin data classes. Automatic mapping, @SerializedName, nullable types, and a custom TypeAdapter for Instant.
Kotlin
JSON Parsing in Java — Parsing with Gson
Parse a real-world JSON response using Gson in Java 21. Automatic mapping, annotations, and custom adapters — the easy way.
Java