Christian Sousa
03/26/2020, 11:50 AMAny
type?
I’m building a data class that has a field that can either come as a String
or List<String>
, and I don’t have any control over that. But when I need to serialize it, it will break because of typing issues.
Has anyone ever faced this issue and if yes, what’s a possible solution? (edited)russhwolf
03/26/2020, 12:24 PMChristian Sousa
03/26/2020, 1:53 PMChristian Sousa
03/26/2020, 2:03 PMJsonTransformingSerializer
any idea?russhwolf
03/26/2020, 2:11 PMChristian Sousa
03/26/2020, 2:12 PMrusshwolf
03/26/2020, 2:12 PM