Marc Dzaebel

Results 19 comments of Marc Dzaebel

Note, anyone who installed Atom with proto-repl gets confused and must investigate quite a lot of time. There is no explanation on how to downgrade to a certain version and...

In my issue (https://github.com/eclipse-ee4j/yasson/issues/259) I supported the requirement, to be able to bind e.g. a JsonObject to it's class instance (not only Streams or Strings). The reason is, that we...

There is a similar question in https://github.com/eclipse-ee4j/yasson/issues/133.

Good news! [Romain Manni-Bucau](https://github.com/eclipse-ee4j/jsonb-api/issues/147) already pointed me to [Polymorphic.java](https://github.com/apache/johnzon/blob/master/johnzon-json-extras/src/main/java/org/apache/johnzon/jsonb/extras/polymorphism/Polymorphic.java) which answers a lot (but I have to analyse it further).

Romains code is like yours. E.g. ``` public void serialize(Dog obj, JsonGenerator generator, SerializationContext ctx) { ctx.serialize(new Wrapper(obj.getClass().getName(), obj), generator); // shortened } ``` This unfortuately also leads to "_Recursive...

Roman, thanks for all options! I used the third one, which works great! Does such an easy method also exist for adding a type attribute directly, without the wrapper? I...

Just in order to reduce JSON depth for network traffic and readability, instead of wrapper serialization ``` {"@class": "org.any.Test", "object": {"name": "Roman Grigoriadi"} } ``` I'd like ``` {"@class": "org.any.Test",...

@bravehorsie Iterating inner properties is not supported by JSON-B, but Yasson has helpers. Might also be a candidate for JSONB-API.

@bravehorsie While serialisation with your third option works, deserialisation must also be switched to Jsonb without deserialisation. However, possible methods do not work. Best would be to add a JUnit-Testcase...