Skip to content

Instantly share code, notes, and snippets.

Last active December 25, 2015 22:05
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
package org.skife.muckery.jackson;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.MappingIterator;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
public class ObjectStreamTest {
public void testFoo() throws Exception {
ObjectMapper mapper = new ObjectMapper();
String json = "[{\"a\":0},{\"a\":1},{\"a\":2}]";
MappingIterator<Thing> itty = mapper.readerFor(Thing.class).readValues(json);
Thing zero =;
Thing one =;
Thing two =;
public static class Thing
public int a;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment