Is there a way to get Jackson to not put the class name in Json output? I asked a question , which led to this question, but I ask what I hope for, this is a more focused question. I use Spring MVC for this, but I'm not sure how important this is.
So instead
{"NamedSystem":{"name":"Bob Dole","id":"0198b96c-fe18-4aa6-9e61-b5f7149414c2"}}
I want
{"name":"Bob Dole","id":"0198b96c-fe18-4aa6-9e61-b5f7149414c2"}
I might prefer the first, but I donβt know how to get Jackson to recognize the class name when deserializing, so if anyone knows this, it will be useful too.
java jackson spring-mvc serialization annotations
AHungerArtist
source share