Answers for "how to return custom value in api spring boot"

0

how to return custom value in api spring boot

String s = "{\"success\": true, ";
ObjectMapper om = new ObjectMapper();
s += "\"friends\": " + om.writeValueAsString(myList).replace('"', '\'') + ", ";
s += "\"count\": " + myList.size();
s += "}";
return s;
Posted by: Guest on June-01-2021

Code answers related to "how to return custom value in api spring boot"

Browse Popular Code Answers by Language