Skip to main content
PCSalt
YouTube GitHub

# parsing

10 posts

JSON Parsing in Kotlin — Parsing with Kotlin Serialization

Parse a complex JSON response using Kotlin Serialization — the Kotlin-native, compile-time safe approach with no reflection.

XML Parsing in Kotlin — XmlPullParser and Retrofit

Parse XML in Kotlin using Android's built-in XmlPullParser and Retrofit with SimpleXML converter. Manual vs automatic — when to use what.

JSON Parsing in Kotlin — Parsing with Jackson

Parse a complex JSON response using Jackson with the Kotlin module — the server-side powerhouse that's also the default in Spring Boot.

JSON Parsing in Java — Parsing with Jackson

Parse a real-world JSON response using Jackson in Java 21. ObjectMapper, annotations, and the JavaTimeModule for dates.

JSON Parsing in Kotlin — Parsing with Moshi

Parse a complex JSON response using Moshi with Kotlin data classes, codegen, and proper null safety. The recommended JSON library for modern Android.

JSON Parsing in Java — Parsing with Moshi

Parse a real-world JSON response using Moshi in Java 21. Clean annotations, custom adapters, and built-in null safety.

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.

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.

JSON Parsing in Kotlin — Manual Parsing with org.json

Parse a complex, real-world JSON response manually using org.json in Kotlin. Extension functions help, but the verbosity is still real.

JSON Parsing in Java — Manual Parsing with org.json

Parse a complex, real-world JSON response manually using org.json in Java 21. Every getString, every null check, every nested loop — the hard way.