@Test public void testStream() { Json.stream(input(1)) .field("menu") .field("popup") .fieldArray("menuItem") .field("value") .map(JsonNode::asText) .test() .assertValues("New", "Open", "Close"); }
public static Json stream(InputStreamFactory inputStreamFactory) { return new Json(streamFrom(FACTORY_AUTO_CLOSE_ON, factory -> factory.createParser(inputStreamFactory.call()))); }
Json { public static Json stream(InputStreamFactory inputStreamFactory) { return new Json(streamFrom(FACTORY_AUTO_CLOSE_ON, factory -> factory.createParser(inputStreamFactory.call()))); } }
Json { public static Json stream(InputStreamFactory inputStreamFactory) { return new Json(streamFrom(FACTORY_AUTO_CLOSE_ON, factory -> factory.createParser(inputStreamFactory.call()))); } private  Json(Stream<JsonParser> stream); }
Json { public static Json stream(InputStreamFactory inputStreamFactory) { return new Json(streamFrom(FACTORY_AUTO_CLOSE_ON, factory -> factory.createParser(inputStreamFactory.call()))); } private  Json(Stream<JsonParser> stream); static Json stream(InputStreamFactory inputStreamFactory); static Json stream(ReaderFactory readerFactory); static Json stream(InputStream in); static Json stream(Reader reader); static Json stream(String text); static Json stream(Function<? super JsonFactory, ? extends JsonParser> creator); Json withMapper(ObjectMapper mapper); Json field(String name); Stream<JsonParser> get(); JsonArray fieldArray(String name); Maybe<LazyObjectNode> objectNode(); Maybe<LazyValueNode> valueNode(); Maybe<LazyTreeNode> node(); Maybe<LazyArrayNode> arrayNode(); }
Json { public static Json stream(InputStreamFactory inputStreamFactory) { return new Json(streamFrom(FACTORY_AUTO_CLOSE_ON, factory -> factory.createParser(inputStreamFactory.call()))); } private  Json(Stream<JsonParser> stream); static Json stream(InputStreamFactory inputStreamFactory); static Json stream(ReaderFactory readerFactory); static Json stream(InputStream in); static Json stream(Reader reader); static Json stream(String text); static Json stream(Function<? super JsonFactory, ? extends JsonParser> creator); Json withMapper(ObjectMapper mapper); Json field(String name); Stream<JsonParser> get(); JsonArray fieldArray(String name); Maybe<LazyObjectNode> objectNode(); Maybe<LazyValueNode> valueNode(); Maybe<LazyTreeNode> node(); Maybe<LazyArrayNode> arrayNode();  }