Hello everyone, I just made and published a little lib for serializing / deserializing tuples with kotlinx-serialization api.
The lib is multiplatform and works with officials JSON, CBOR and HOCON kotlinx serializer.
https://github.com/L-Briand/tuple
It looks like this:
var tup4 = tuple(1, "a", 2, "b")
val json = Json.encodeToString(tup4)
assert("""[1,"a",2,"b"]""" == json)