<@U33H6SB2B> what do you think about using a custo...
# javascript
e
@turansky what do you think about using a custom kotlinx-serialization encoder to transform Kotlin classes to plain objects?
I need to try it out.
t
It's fine bridge from Kotlin to JS world
But it has same downside as you mentioned in issue - you will add code (of serializers) to all platforms 😉
e
The only real problem for me is that I will have to export a decode/encode function for each class, unless there is way to get the
(De)SerializationStrategy
dynamically?
t
If goal - convert to JSON (one direction) - you can do it without
kotlinx-serialization
With 1 simple* JS function