Skip to content

Instantly share code, notes, and snippets.

@exSnake
Created May 25, 2016 21:59
Show Gist options
  • Save exSnake/7667278be2bea9e6a18d7070aae60a1f to your computer and use it in GitHub Desktop.
Save exSnake/7667278be2bea9e6a18d7070aae60a1f to your computer and use it in GitHub Desktop.
public static void main(String[] args) throws JsonParseException, JsonMappingException, IOException {
File jsonFile = new File("user.json");
Slot slots = null;
ObjectMapper mapper = new ObjectMapper();
slots = mapper.readValue(jsonFile, Slot.class);
for (Row row : slots.getRows()) {
System.out.println(row.getIdApparecchio());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment