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);
import org.codehaus.jackson.map.ObjectMapper;
Map map = new ObjectMapper().convertValue(myObject, Map.class);
MyClass myObject = new ObjectMapper().convertValue(map, MyClass.class);