Object Convert


import org.codehaus.jackson.map.ObjectMapper;

Object To Map

Map map = new ObjectMapper().convertValue(myObject, Map.class);

Map to Object

MyClass myObject = new ObjectMapper().convertValue(map, MyClass.class);

[top]

comments powered byDisqus