SyntaxFix
Write A Post
Hire A Developer
Questions
you can also use a hashmap for this
@GetMapping public HashMap<String, Object> get() { HashMap<String, Object> map = new HashMap<>(); map.put("key1", "value1"); map.put("results", somePOJO); return map; }