After being stupid and posting my issue in #ktor because I forgot to change channels... I found a long rounding bug in kotlinx.serialization when trying to use Kotlin/JS with the new IR compiler: https://github.com/Kotlin/kotlinx.serialization/issues/1369