Hi guys! I cannot find a JSON:API library for Kotl...
# serialization
z
Hi guys! I cannot find a JSON:API library for Kotlin multiplatform. But I found a post in this channel that can convert almost any JSON:API string into an object. But then I had an issue with the dynamic relationship types. In the format specification, the relationship can be either
to-one
or
to-many
https://jsonapi.org/format/#crud-updating-relationships. It means that the value of
data
can be either an object (to-one) or an array of objects (to-many). Is there a way to deserialise `data`into either line 92 or 93?
👀 1