java JsonMapper

序列化:将对象转换成字节序列的过程叫做对象序列号

反序列化:蒋字节序列恢复成对象的过程叫做反序列化

 

//如果不为空就获得mapping

ObjectMapper mapper=JsonMapper.notNullMapper().getMapper();

 

JsonNode expectResultNode=mapper.readTree(expectResult);