Data & JSON
Parsing, encoding and transforming structured data, with an emphasis on JSON and date/time handling.
How-to
Format a Date in Kotlin
Format date and time values using the java.time API and DateTimeFormatter.
How-toFormat a Date in Python
Turn a datetime into a string with strftime and parse strings back with strptime.
How-toFormat a Date in Swift
Turn a Date into a localized string with the modern formatted API or a reusable DateFormatter.
How-toParse JSON in Kotlin
Decode JSON into data classes using the kotlinx.serialization library.
How-toParse JSON in Python
Convert a JSON string into Python dicts and lists with the standard-library json module.
How-toParse JSON in Swift
Decode JSON into strongly typed Swift structs with JSONDecoder and the Codable protocol.