public static JsonGouldiBean readGoldFile ( Path pathToSingleGoldFile ) throws IOException { File f = pathToSingleGoldFile . toFile ( ) ; ObjectMapper mapper = new ObjectMapper ( ) ; return mapper . readValue ( f , JsonGouldiBean . class ) ; }
Reads a gold file in json format from the given path . It will be stored as Java objects .