Converts the selected columns content to a JSON value row-wise or column-wise. It also has an option to "undo" - with some limitations - the JSON to Table transformation, and can create JSON values for each row based on the column names.
Example input table:
| a.b | a.c | d |
|---|---|---|
| b0 | c0 | d0 |
| b1 | c1 | d1 |
[ {
"a.b" : "b0",
"a.c" : "c0",
"d" : "d0"
}, {
"a.b" : "b1",
"a.c" : "c1",
"d" : "d1"
} ]
Keep rows (column names treated as paths, default separator: .):
{
"a" : {
"b" : "b0",
"c" : "c0"
},
"d" : "d0"
}
{
"a" : {
"b" : "b1",
"c" : "c1"
},
"d" : "d1"
}
Column-oriented (row keys as JSON value, with the key: "ROWID"):
{
"ROWID" : [ "Row0", "Row1" ],
"a.b" : [ "b0", "b1" ],
"a.c" : [ "c0", "c1" ],
"d" : [ "d0", "d1" ]
}You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.
To use this node in KNIME, install the extension KNIME JSON-Processing from the below update site following our NodePit Product and Node Installation Guide:
A zipped version of the software site can be downloaded here.
Deploy, schedule, execute, and monitor your KNIME workflows locally, in the cloud or on-premises – with our brand new NodePit Runner.
Try NodePit Runner!