Chris Miller
11/25/2024, 12:35 PMDoubleArray
instances. Is there a simple way to reduce the precision when serialising them to json? (I'm sending the data to a web client and need to reduce the amount of data being sent, I don't care that I lose some precision in that situation). Seems like I have to completely reimplement both DoubleArraySerializer
and DoubleSerializer
, since a lot of the existing implementation is internal and/or can't be subclassed?Daniel Pitts
11/26/2024, 1:03 AMChris Miller
11/26/2024, 7:30 PMoverride fun deserialize(decoder: Decoder): DoubleArray = DoubleArraySerializer().deserialize(decoder)
Still seems like I end up with a lot of boilerplate but if that's the only way then so it goes