If I have to marshal a List<?>
how to avoid that it shows the type?
So the result of a marshalling List<?>
is [{"type" : "person","id":"1"},{"type" : "person","id":"2"}] }
and it give me also the type="Person" in the JSON results!
How could I avoid that it shows me the type?
Thank you
I haven't been able to reproduce the issue that you are seeing. Below is what I have tried.
Domain Model (Person)
jaxb.properties
To specify MOXy as your JAXB provider you need to include a file called
jaxb.properties
in the same package as your domain model with the following entry (see: http://blog.bdoughan.com/2011/05/specifying-eclipselink-moxy-as-your.html).Demo
Output
UPDATE
I still haven't reproduced your issue, but here is how I have adapted my example.
oxm.xml
Demo
Output