eclipse-ee4j / eclipse-ee4j/yasson
[De]Serialize polymorphic objects
- Dominant language
- Java
- Stars
- 218
- Forks
- 109
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 9
Description
[Dmitry](https://stackoverflow.com/questions/46050845/how-to-deserialize-an-interface-with-json-b) once explained, how to [de]serialize objects into their runtime classes. However, his solution is not valid, as Yasson signals a recursive reference, which is intended/correct behavior. So the question remains, how to realize this usecase, that might occur many times in real applications. Jackson has 3 strategies for this but how could this be done with standard JSON-B, or if not, how can this be done with Yasson specific classes like ObjectSerializer? My question on [SO](https://stackoverflow.com/questions/56804466/generic-polymorphic-jsonbserializer-with-json-b) unfortunately is not answered. There is a [commit](https://github.com/eclipse-ee4j/yasson/pull/64/commits/be04708edd4210add0abaf83563de7493c2f0175) from Roman that handles [Interface to impl mapping](https://github.com/eclipse-ee4j/yasson/pull/64/commits/be04708edd4210add0abaf83563de7493c2f0175) request, so may be there are already some oppotunities?
Contributor guide
Assessment
This issue has not been assessed yet.