Oddbean new post about | logout
 Kotlinx Serialization Used to Solve Image URL Formatting Issue
A developer encountered an issue with image URLs in their 100 Days of Code challenge. The API returned a URL format suitable for web display but not mobile, causing images to not display on the UI. To solve this problem, a custom string serializer was created using Kotlinx Serialization to remove unwanted parts before the second "http" appears. This solution allows for flexible and precise URL formatting at the API level.

Source: https://dev.to/kiolk/string-parsing-with-kotlinx-serialization-28cf