Hello,
currently I’am developing a node which returns a JSON String.
For now I return a Data Table which returns a column with StringCells. Now I want to extend this to a JSON Cell.
The method looks like in the following example:
private static DataTableSpec createSpec() {
DataTableSpecCreator table = new DataTableSpecCreator();
DataColumnSpecCreator column = new DataColumnSpecCreator("Result", new StringCell("").getType());
table.addColumns(column.createSpec());
return table.createSpec();
}
How can I change the cell from StringCell to a JsonCell?
Has someone any ideas?
Thank you!
Greetings
Egg