Examples of treeAsTokens()


Examples of com.fasterxml.jackson.databind.ObjectMapper.treeAsTokens()

  public <C> C mapInternalToJava(Object parameter, JavaType type) {
    JsonNode jsonNode = (JsonNode) parameter;
    ObjectMapper mapper = format.getConfiguredObjectMapper();
    try {
      return mapper.readValue(mapper.treeAsTokens(jsonNode), type);
    } catch (IOException e) {
      throw LOG.unableToDeserialize(jsonNode, type, e);
    }
  }
View Full Code Here

Examples of com.fasterxml.jackson.databind.ObjectMapper.treeAsTokens()

    }
  }

  public <T> T getListWith(DrillConfig config, TypeReference<T> t) throws IOException {
      ObjectMapper mapper = config.getMapper();
      return mapper.treeAsTokens(root).readValueAs(t);
  }

  public <T> T getListWith(ObjectMapper mapper, TypeReference<T> t) throws IOException {
    return mapper.treeAsTokens(root).readValueAs(t);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.