public static ArrayNode generateRowArrayNode(TableModel tm) {
        ArrayNode array = MAPPER.createArrayNode();
        for (TableModel.Row r : tm.getRows()) {
            array.add(toJsonNode(r, tm));
        }
        return array;
    }
@Test
    public void basic() {
        TableModel tm = new TableModel(FOO, BAR);
        tm.addRow().cell(FOO, 1).cell(BAR, 2);
        tm.addRow().cell(FOO, 3).cell(BAR, 4);

        ArrayNode array = TableUtils.generateRowArrayNode(tm);
        Assert.assertEquals("wrong results", ARRAY_AS_STRING, array.toString());
    }