What is the preferred method for returning null values in JSON? Is there a different preference for primitives? For example, if my object on the server has an Integer...
  • May 1, 2022
  • 0 Comments
The Jackson data binding documentation indicates that Jackson supports deserialising “Arrays of all supported types” but I can’t figure out the exact syntax for this. For a single object...
  • April 16, 2022
  • 0 Comments
No need to go with GSON for this; Jackson can do either plain Maps/Lists: ObjectMapper mapper = new ObjectMapper(); Map<String,Object> map = mapper.readValue(json, Map.class); or more convenient JSON Tree:...
  • April 4, 2022
  • 0 Comments