Skip to content

Instantly share code, notes, and snippets.

@electrum
Created July 9, 2009 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save electrum/143973 to your computer and use it in GitHub Desktop.
Save electrum/143973 to your computer and use it in GitHub Desktop.
InputStream stream = new BufferedInputStream(response.getResponseBodyAsStream());
JsonParser parser = new MappingJsonFactory(Jacksons.JSON_OBJECT_MAPPER).createJsonParser(stream);
parser.disableFeature(JsonParser.Feature.AUTO_CLOSE_SOURCE);
JacksonIterator<String> iter = JacksonIterator.iterator(parser, String.class, "items");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment