Custom Kotlin Serializer for BigDecimal
Since BigDecimal is part of Java Math and not Kotlin, a custom serializer is needed if you’re not using Jackson. After some thought, I chose to serialize it into a string using KSerializer. This means that you will need to…