//As List: List<MyClass> myObjects = mapper.readValue(jsonInput, new TypeReference<List<MyClass>>(){});
//Another way to specify the List type: List<MyClass> myObjects = mapper.readValue(jsonInput, mapper.getTypeFactory().constructCollectionType(List.class, MyClass.class));
object to json
User user = new User(); user.setFirstName("Shane); user.setLastName("James"); user.setAge(28);