Skip to content

Tag: objectmapper

How can I deserialize it using Java?

I have a postgresql function that returns json: How can I deserialize it using Java? My POJO I want to use ObjectMapper but I can’t do this) Answer Change your Information class to the following (mind the Jackson annotations to match JSON properties): And then you just need to use Jackson’s Object…

No serializer found when serializing one Object

I’m trying to return an Object as JSON. Using the /user/id endpoint, I want to display a User based on his Id. When calling this controllerMethod I get the following Exception: My contollerClass looks like this: I checked if al fields have a public getter and tried various options with @JSONIgnoreProper…