@Test public void textAt() { ObjectNode node = newObject(); node.put("foo", "bar"); String value = Selectors.textAt(node, FOO_FIELD); assertThat(value, is("bar")); }
public static String textAt(JsonNode node, JsonPointer pointer) { node = dereference(node, pointer); if (!node.isTextual()) { throw new WrongTypeException(pointer, "not a string"); } return node.asText(); }
Selectors { public static String textAt(JsonNode node, JsonPointer pointer) { node = dereference(node, pointer); if (!node.isTextual()) { throw new WrongTypeException(pointer, "not a string"); } return node.asText(); } }
Selectors { public static String textAt(JsonNode node, JsonPointer pointer) { node = dereference(node, pointer); if (!node.isTextual()) { throw new WrongTypeException(pointer, "not a string"); } return node.asText(); }  }
Selectors { public static String textAt(JsonNode node, JsonPointer pointer) { node = dereference(node, pointer); if (!node.isTextual()) { throw new WrongTypeException(pointer, "not a string"); } return node.asText(); }  static String textAt(JsonNode node, JsonPointer pointer); static int integerAt(JsonNode node, JsonPointer pointer); static Iterable<? extends JsonNode> listAt(JsonNode node, JsonPointer pointer); static List<String> textListAt(JsonNode node, JsonPointer pointer); static Map<String, String> propertiesAt(JsonNode node, JsonPointer pointer); }
Selectors { public static String textAt(JsonNode node, JsonPointer pointer) { node = dereference(node, pointer); if (!node.isTextual()) { throw new WrongTypeException(pointer, "not a string"); } return node.asText(); }  static String textAt(JsonNode node, JsonPointer pointer); static int integerAt(JsonNode node, JsonPointer pointer); static Iterable<? extends JsonNode> listAt(JsonNode node, JsonPointer pointer); static List<String> textListAt(JsonNode node, JsonPointer pointer); static Map<String, String> propertiesAt(JsonNode node, JsonPointer pointer);  }