I struggle with how Moxy handles object inheritance.
In particular, I need to rename the default type element, which Moxy adds in the case of subtypes, since it prevents me from having my own type field in my objects.
This question relates to Remove "type" from JSON output jersey moxy , but unfortunately it does not answer my question.
I tried to include @XmlDiscriminatorNode in my abstract class, which seems to have nothing to do with the resulting json at all.
I also tried to completely remove the default moxy type element, but without any success.
java json marshalling eclipselink moxy
Stepan vavra
source share