How can I add the serialization plugin to a kts script?
➕ 2
❓ 2
t
Tmpod
03/20/2020, 1:21 PM
Good question actually. I'd be interested in knowing how this can be achieved too.
m
mbonnin
03/23/2020, 5:30 PM
Yep, me too. I've been using moshi for json but if I could switch to serialization, I'd do it
t
Tmpod
03/24/2020, 11:16 PM
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
ilya.chernikov
03/25/2020, 8:16 AM
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.