Answers for "array 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

how to convert a list of json to list of array

dataArray = [{"Value":10,"ValuePourcent":2},{"Value":20,"ValuePourcent":3},{"Value":51,"ValuePourcent":1}]

newFormat = dataArray.map(function(e){
                  return [e["Value"], e["ValuePourcent"]]
                  });
Posted by: Guest on March-17-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language