jakartaee / jsonb-api

Jakarta JSON Binding
https://eclipse-ee4j.github.io/jsonb-api/
Other
78 stars 39 forks source link

Non-static inner classes support #68

Open jsonbrobot opened 6 years ago

jsonbrobot commented 6 years ago

By the nature of non-static inner classes, they cannot have a default non-argument constructor which makes not possible to deserialize them using default mapping. The spec has to be changed in a way that non-static inner classes support is removed or non-static inner classes are supported only for serialization. See discussion on Yasson issues tracker: https://github.com/eclipse/yasson/issues/49

jsonbrobot commented 6 years ago
rmannibucau commented 3 years ago

Maybe it is related to binding a JSON to an instance:

final var instance = new MyInstance(); jsonb.fromJson(json, instance)