1. The Java unit test:
  2. public void testAnimation() throws JsonParseException, JsonMappingException, IOException {
  3. ObjectMapper mapper = new ObjectMapper();
  4. Animation animation = mapper.readValue(new File("data/entityTest.json"), Animation.class);
  5. }
  6.  
  7. The JSON:
  8. {
  9. "frames" : [ {
  10. "ref" : "data/bullet.jpg"
  11. } ],
  12. "duration" : 1
  13. }
  14.  
  15. The error:
  16. org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "frames" (Class org.newdawn.slick.Animation), not marked as ignorable