Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

HashMap to Pojo

final ObjectMapper mapper = new ObjectMapper();
final Map<String, Object> map = mapper.convertValue(pojo, new TypeReference<Map<String, Object>>() {});
Source by newbedev.com #
 
PREVIOUS NEXT
Tagged: #HashMap #Pojo
ADD COMMENT
Topic
Name
5+8 =