例:
Object object = {name:“张三”,age:23}
代码实现:

Map entity = (Map)object;
//获取object中name的值:
String name = entity.get("name").toString();
//获取object中age的值
int age = Integer.valueOf(entity.get("age"));