<dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.1.46.sec01</version> </dependency>
JSON.parseObject(JSON.toJSONString(Map<String, ? extends Object>), Class<T> cls);
Another method is the class BeanUtils
BeanUtils.populate(Object bean, Map<String, ? extends Object> properties)