return root;
}
public ObjectNode toJsonNode() {
ObjectMapper mapper = new ObjectMapper();
return mapper.valueToTree(this);
}
public static <T> T fromJson(byte[] in, Class<T> clazz) {
MappingJsonFactory jsonFactory = new MappingJsonFactory(); // or, for data binding, org.codehaus.jackson.mapper.MappingJsonFactory
try {