Signed-off-by: Ben Pfaff <blp@nicira.com>
const struct cell *cell = table_cell__(table, y, x);
if (cell->text) {
json_array_add(row, json_string_create(cell->text));
const struct cell *cell = table_cell__(table, y, x);
if (cell->text) {
json_array_add(row, json_string_create(cell->text));
+ } else if (cell->json) {
json_array_add(row, json_clone(cell->json));
json_array_add(row, json_clone(cell->json));
+ } else {
+ json_array_add(row, json_null_create());
}
}
json_array_add(data, row);
}
}
json_array_add(data, row);