This node transforms a JSON column into multiple columns by automatically inferring the structure of the
JSON data. It works best with well-structured, relatively flat JSON objects that follow a consistent schema
across all rows.
You can choose between two main extraction approaches. One option is to extract only the primitive leaf
values (such as strings or numbers), ignoring their full JSON paths. The other option is to retain the
complete JSON structure. However, keeping the full structure may lead to less intuitive results, since the
resulting columns can contain JSON values or collections of JSON rather than simple data types.
For example, consider JSON inputs like:
{"a": {"b": [1, 2], "c": "c"}}{"a": {"b": [3], "d": null}}a.b.0, a.b.1,
a.c, a.d) and expand arrays into separate columns. This produces more granular columns,
such as individual elements of arrays and nested fields.{
"Array object":
[1, 2, 3]
}{
"Array object":
[4, {"Nested object": 5}]
}[1,2,3], [4] [1,2,3], [4, {"Nested object": 5}] 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!