I want to export data from KNIME into a JSON format as follows:
"values": [
[ -15.42, 95 ],
[ -15.36, 95 ],
...
and I have a data a normal table:
1.0 579.9
2000.0 586.2
500.0 581.4
I tried several combinations of the “Transpose”- and “Table to JSON”-node and the best outcome is a transposed version and the “column oriented” “aggration column” (see attached workflow json1.knwf (10.4 KB)):
Hello @spider
As you probably tried already, I’ve been trying to find a straight forward node configuration but I couldn’t. For this specific request I think that you will have to customize your JSON file.
Hey spider,
i just noticed that you can cut the column rename, since you can change the column name to ‘values’ directly inside the column aggregator node (options → aggregation settings → Column name).