How can I add the serialization plugin to a kts sc...
# scripting
p
How can I add the serialization plugin to a kts script?
2
2
t
Good question actually. I'd be interested in knowing how this can be achieved too.
m
Yep, me too. I've been using moshi for json but if I could switch to serialization, I'd do it
t
Anyone got this working? Ik you can refine the configurations taking annotations into consideration, but I'm not sure how to make the serialization plugin work with this. Does it even expose an API to call parts of it from code?
i
I think this is not possible for the moment, at least without hacking the scripting compiler. Seems like an oversight from our side. Please, file an issue, and we'll see what we can do about it.
t
I opened an issue about this, which can be found here: https://youtrack.jetbrains.com/issue/KT-37766
👍 2