Advertisement
Guest User

Untitled

a guest
Oct 12th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. public class Foo {
  2.  
  3. @JsonInclude(JsonInclude.Include.NON_NULL)
  4. protected String hello;
  5.  
  6. protected Map<String, Object> additionalFields;
  7.  
  8. //Constructors, Getters, & Setters
  9.  
  10.  
  11. }
  12.  
  13. What I'm getting now:
  14. {
  15. "hello": "23",
  16. "additionalFields": {
  17. "field1": "23",
  18. "field2": "24",
  19. "key": "value"
  20. }
  21. }
  22.  
  23.  
  24. What I'd like:
  25. {
  26. "hello": "23",
  27. "field1": "23",
  28. "field2": "24",
  29. "key": "value"
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement