eclipse-ee4j / eclipse-ee4j/yasson
Deserialization of object from primitive type not working ?
Open
bug
- Dominant language
- Java
- Stars
- 218
- Forks
- 109
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 9
Description
When an object is serialized as a unique primitive value (say a numeric primary key) using a dedicated Serializer, Yasson fails to natively deserialize it ("Error deserialize JSON value into type XXX").
For instance, Jackson dynamically checks if a constructor for target object exists with primitive value as a parameter, and invokes it to retrive object instance (so without the need for custom deserializer)
Contributor guide
Assessment
This issue has not been assessed yet.