Thanks for the tips @Jan Holešovský & @kevin.cianfarini
Used the ionspin implementation. Works awesomly.
Especially for kotlinx serialization, ionspin' s serializers were not suitable for my case (wanted to output big integers as JSON numbers). Hopefully, kotlinx.serialization provides function