String resource = "src/test/resources/com/dyuproject/json/test/employee.json";
StandardJSON json = new StandardJSON();
File file = new File(resource);
BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(file)));
Map<String,Object> map = (Map<String,Object>)json.parse(new ReaderSource(reader));
Employee e = (Employee)map.get("employee");
assertTrue(e!=null);
assertTrue("John".equals(e.getFirstName()));
List<Task> tasks = e.getTasks();
assertTrue(tasks!=null && tasks.size()==3);
assertTrue("10".equals(tasks.get(0).getStatus()));
assertTrue("15".equals(tasks.get(1).getStatus()));
assertTrue("20".equals(tasks.get(2).getStatus()));
}