{"title":"Table to JSON","nodeType":"Manipulator","id":"*xsMeCA0QgX92370E","factoryName":"org.knime.json.node.fromtable.TableToJsonNodeFactory","factoryId":"org.knime.json.node.fromtable.TableToJsonNodeFactory","path":["Structured Data","JSON"],"owner":"knime","ownerAccountId":"account:team:b5f0848f-496d-4e6a-b869-fa3532248db7","description":"<p>Converts the selected columns content to a JSON value row-wise or column-wise. It also has an option to &#34;undo&#34; - with some limitations - the JSON to Table transformation, and can create JSON values for each row based on the column names.\n <br />\n Example input table:\n </p>a.ba.cdb0c0d0b1c1d1\n With the different parameters, the following JSON values are generated:\n <br />\n <b>Row-oriented</b>(datatable as one JSON value):<pre>[ {\n  &#34;a.b&#34; : &#34;b0&#34;,\n  &#34;a.c&#34; : &#34;c0&#34;,\n  &#34;d&#34; : &#34;d0&#34;\n}, {\n  &#34;a.b&#34; : &#34;b1&#34;,\n  &#34;a.c&#34; : &#34;c1&#34;,\n  &#34;d&#34; : &#34;d1&#34;\n} ]</pre>\n            \n            <b>Keep rows</b>\n             (column names treated as paths, default separator: \n            <tt>.</tt>\n            ):\n\n            <pre>{\n  &#34;a&#34; : {\n    &#34;b&#34; : &#34;b0&#34;,\n    &#34;c&#34; : &#34;c0&#34;\n  },\n  &#34;d&#34; : &#34;d0&#34;\n}</pre>\n            \n            <pre>{\n  &#34;a&#34; : {\n    &#34;b&#34; : &#34;b1&#34;,\n    &#34;c&#34; : &#34;c1&#34;\n  },\n  &#34;d&#34; : &#34;d1&#34;\n}\n</pre>\n            \n            <b>Column-oriented</b>\n             (row keys as JSON value, with the key: &#34;ROWID&#34;):\n\n            <pre>{\n  &#34;ROWID&#34; : [ &#34;Row0&#34;, &#34;Row1&#34; ],\n  &#34;a.b&#34; : [ &#34;b0&#34;, &#34;b1&#34; ],\n  &#34;a.c&#34; : [ &#34;c0&#34;, &#34;c1&#34; ],\n  &#34;d&#34; : [ &#34;d0&#34;, &#34;d1&#34; ]\n}</pre>\n            \n        \n        ","shortDescription":"Converts some columns of a table to a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1QkJBNUU2RTVGMDhGOThCMyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDoxRUJDQzk0N0VGNTkxMUU1QkJBNUU2RTVGMDhGOThCMyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PmudzdsAAAEdSURBVHjapFNBaoNQEP0TshBUyEps8AIeIQtvkH0o3ek2tAfoFbLKTgtd5gDBO2ThJUJOEFDrQpvpjOTbIaTYTwYevi++57wZPiCieqSmJh8DgDz6hDcm+Be4OwlRK0Jp2zbCebu4m2H2emAR3OngmbAjsXJd1ywC1ZzwocVhGKrRCFeuI2y4bd/3MUkSLIrie6qzcXsyJ5/F0JA4kHjJfw6CQMVxrOq6noxFkPNBErdsEEWRattWlWWpJmObk5zFDM/zenFvIFvV/GbfgxGJT2zANRjIHd/u/MpBvyPxng2apvk1MNkhibeEpqqqXsxPI4M8z49ksOaI2uS/Mxgqy7JPx3FeLMv6oigXMLmN0jhN06eu697h0ev8I8AAE/qng0hSmjkAAAAASUVORK5CYII=","views":[],"inPorts":[{"objectClass":"org.knime.core.node.BufferedDataTable","color":"000000","dataType":"Table","optional":false,"name":"Table","description":"A datatable"}],"outPorts":[{"objectClass":"org.knime.core.node.BufferedDataTable","color":"000000","dataType":"Table","optional":false,"name":"JSON","description":"Table containing the JSON column"}],"dynInPorts":[],"dynOutPorts":[],"additionalSiteInformation":{"url":"https://update.knime.com/analytics-platform/5.12","trusted":true,"enabledByDefault":true,"name":"KNIME Analytics Platform 5.12 Update Site","version":"5.12.0"},"dialog":[{"sectionName":"Options","fields":[{"name":"Input columns","description":"The selected columns will be transformed.","optional":false},{"name":"Row keys","description":"Configure how row keys should be handled in the JSON output.\n<ul><li><b>Omit row key</b> : The row keys will be omitted, not used in the generated JSON value (which are arrays when the rows are not kept).</li><li><b>Row key as JSON value with key</b> : The row keys will be included in the generated JSON (array) value with the specified key.</li><li><b>Row key as JSON key</b> : The row keys are added to the generated JSON value as a key, in this case not an array, but an object is created.</li></ul>","optional":false},{"name":"Row key name","description":"The key name to use when row keys are included as JSON values.","optional":false},{"name":"Column names as paths","description":"When enabled, column names are treated as hierarchical paths using the specified separator.","optional":false},{"name":"Path separator","description":"When column names as paths is enabled, this value will be used to find the keys for JSON columns based on the column names.","optional":false},{"name":"Aggregation direction","description":"Configure how to aggregate the selected columns into JSON.\n<ul><li><b>Row-oriented (n input rows → 1 output cell)</b> : The values from the selected columns are collected and concatenated row-wise to a JSON object/array, after that these are combined by the rows to a single JSON value.</li><li><b>Keep rows (n input rows → n output cells)</b> : The selected columns are combined to a new JSON column containing the values from the columns and the name of the columns as keys. This option does not combine the rows of the input table.</li><li><b>Column-oriented (n input rows → 1 output cell)</b> : The values from the selected columns are collected and concatenated column-wise to a JSON object/array, after that these are combined by the columns to a single JSON value.</li></ul>","optional":false},{"name":"Remove source columns","description":"When checked, the source columns are removed when the rows are kept. It has no effect for the other aggregation direction options, when all columns are removed.","optional":false},{"name":"Missing values","description":"Configure how missing values should be handled in the JSON output.\n<ul><li><b>are omitted</b> : Missing values from the input table do not generate a key in the resulting JSON structure, they are omitted completely. Note that in a column-oriented transformation missing cells will still be inserted as null values in the column&#39;s array because otherwise the row arrays for different columns may have different numbers of entries. This would make it impossible to reconstruct the original table.</li><li><b>are inserted as &#39;null&#39;</b> : Missing values from the input table are inserted as null values.</li></ul>","optional":false},{"name":"Output column name","description":"Name of the resulting JSON column.","optional":false}]}],"links":[],"kudos":[],"kudosCount":0,"bundleInformation":{"bundleVersion":"5.12.0.v202605291551","bundleName":"JSON related functionality for KNIME","bundleSymbolicName":"org.knime.json","bundleVendor":"KNIME AG, Zurich, Switzerland","featureSymbolicName":"org.knime.features.json","featureName":"KNIME JSON-Processing","featureVersion":"5.12.0.v202605291551","featureVendor":"KNIME AG, Zurich, Switzerland","extensionId":"*M6ImzgljvpBKaP13"},"frequentSuccessors":[{"id":"*xCgldu0u0nsCPEFk","factoryName":"org.knime.json.node.writer.JSONWriterNodeFactory","probability":0.12406947890818859},{"id":"*zOsWiRPweohTpd8S","factoryName":"org.knime.json.node.output.JSONOutputNodeFactory","probability":0.10918114143920596},{"id":"*jDedZ_onUp4c833B","factoryName":"org.knime.rest.nodes.post.RestPostNodeFactory","probability":0.062034739454094295},{"id":"*zhYELiOdCKD64rlU","factoryName":"org.knime.explorer.nodes.callworkflow.local.CallLocalWorkflowNodeFactory","probability":0.052109181141439205},{"id":"*2xUDt4Z24aku4wiS","factoryName":"org.knime.json.node.totable.JSONToTableNodeFactory","probability":0.04714640198511166},{"id":"*C1zA3UfdJepeh0eb","factoryName":"org.knime.json.node.combine.row.RowCombineJsonNodeFactory","probability":0.03225806451612903},{"id":"*eOn8ibZnxIkY7XhT","factoryName":"org.knime.base.node.preproc.stringmanipulation.StringManipulationNodeFactory","probability":0.02977667493796526},{"id":"*YaMkGnHkmVTd6ZB-","factoryName":"org.knime.mongodb.write.MongoDBWriterNodeFactory","probability":0.02977667493796526},{"id":"*xDQ1LJvJiHYRxkHK","factoryName":"com.knime.server.nodes.callworkflow.CallRemoteWorkflowNodeFactory","probability":0.02977667493796526},{"id":"*3IccdLfpFEAp9yoz","factoryName":"org.knime.json.node.jsonpath.multi.JSONPathNodeFactory","probability":0.02729528535980149}]}
