Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

map json string to java object

ObjectMapper objectMapper = new ObjectMapper();
String json = "{ "color" : "Black", "type" : "BMW" }";
Car car = objectMapper.readValue(json, Car.class);	
 
PREVIOUS NEXT
Tagged: #map #json #string #java #object
ADD COMMENT
Topic
Name
3+4 =