Answers for "java list to json"

0

json array to List in java

List<Employee> list = mapper.readValue(jsonString,
TypeFactory.defaultInstance().constructCollectionType(List.class,  
   Employee.class));
Posted by: Guest on May-22-2021
0

convertir lista a Json en Java

List<String> foo = new ArrayList<String>();
foo.add("A");
foo.add("B");
foo.add("C");

String json = new Gson().toJson(foo );
Posted by: Guest on December-15-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language