Answers for "map json string to java object"

1

map json string to java object

ObjectMapper objectMapper = new ObjectMapper();
String json = "{ \"color\" : \"Black\", \"type\" : \"BMW\" }";
Car car = objectMapper.readValue(json, Car.class);
Posted by: Guest on June-17-2021

Code answers related to "map json string to java object"

Code answers related to "Javascript"

Browse Popular Code Answers by Language