class Json {

  public static ArrayNode readArrayNode(byte[] data) throws IOException {
    // Read data into a tree
    TreeNode root = MAPPER.readTree(data);
    // Check that we have an array, because treeToValue won't
    if (!root.isArray()) {
      throw new IOException("json value is not an array");
    }
    return (ArrayNode) root;
  }

}