Hi, is there a way to completely deactivate polymo...
# serialization
a
Hi, is there a way to completely deactivate polymorphic serialization and just say to the library to serialize whatever there is inside because I don't need any deserialization later ?
d
Custom serialiser
a
But it's for like 50 classes (with full hierarchy), do I really have to create one serializer per class ?
d
No, just one custom serializer. Look at the built in
PolymorphicSerialiser
for example.
a
I still don't get it sorry, can you explain a bit more ? The only serializer will be for root interface ?
Please, I still don't know what do to :c
d
Probably best to open an issue for this one.
Try using
JsonContentPolymorphicSerializer
.
a
Thanks for that, but it doesn't really satisfy what I need as I have like 100 classes in total with a lot and a lot of different fields so it would be very very long to configure it, I created an issue so !