Is there a way to configure JSON serialization tha...
# serialization
d
Is there a way to configure JSON serialization that, when deserializing, it should populate any encountered but unknown keys into some 'extras'
Map<String, JsonElement>
in the object? I've seen this feature exist in other frameworks e.g. Jackson. It can be used to afford a certain degree of future proofing to information-oriented API's e.g. the data could still be presented to the user and re-serialized as original.
e
totally untested but you could probably do something like that
🙏 1
d
Interesting concept @ephemient , thank you! I will try along these lines.