Emil Kantis

    Emil Kantis

    1 year ago
    Is there any way to write custom literals when defining a
    KSerializer<T>
    ? Use case would be writing a BigDecimal without precision-loss as
    { "myValue": 0.12345 }
    , but without using a Double along the way. Likewise it would be nice to be able to use a
    decoder.decodeUnquotedString
    or something, to parse the above value into a string rather than double without needing to set
    isLenient
    I found a way to work around this, mentioned in first issue