Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

json array form to list object java

String jsonCarArray = 
  "[{ "color" : "Black", "type" : "BMW" }, { "color" : "Red", "type" : "FIAT" }]";
List<Car> listCar = objectMapper.readValue(jsonCarArray, new TypeReference<List<Car>>(){});
Source by www.baeldung.com #
 
PREVIOUS NEXT
Tagged: #json #array #form #list #object #java
ADD COMMENT
Topic
Name
1+9 =