transformations:extractjsonproperties
Differences
This shows you the differences between two versions of the page.
transformations:extractjsonproperties [2022/10/07 22:16] – created craigt | transformations:extractjsonproperties [2022/10/07 22:18] (current) – removed craigt | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{ transformations: | ||
- | ======EXTRACT JSON PROPERTIES====== | ||
- | Category: Transform / Web \\ | ||
- | \\ | ||
- | =====Description===== | ||
- | This action creates new columns with values from selected JSON [[https:// | ||
- | |||
- | \\ | ||
- | =====Action settings===== | ||
- | ^Setting ^Description ^ | ||
- | |Source JSON|Select the column that contains the JSON text.| | ||
- | |New column names|Choose the mode for creating and naming columns from the selected JSON object. | ||
- | |JSON path|Select the specific JSON path(s) to extract into the defined columns. | ||
- | |Position|Choose where the new columns will appear in the table. | ||
- | |If JSON path not found|Choose how EasyMorph will respond to situations when the selected JSON path is not found in the dataset.\\ | ||
- | |||
- | \\ | ||
- | ==== New column names " | ||
- | This mode will create a new column with the same name as the path selected in the "JSON path" setting. | ||
- | |||
- | \\ | ||
- | ==== New column names " | ||
- | In this mode, individual columns are created, and manually named, based on the selected JSON paths. | ||
- | |||
- | |||
- | \\ \\ | ||
- | =====Examples===== | ||
- | **Source JSON: | ||
- | < | ||
- | {" | ||
- | " | ||
- | </ | ||
- | |||
- | \\ | ||
- | **Action parameters: | ||
- | > Source JSON is " | ||
- | > New column names is " | ||
- | > JSON path is " | ||
- | \\ | ||
- | |||
- | **Result: | ||
- | < | ||
- | [ | ||
- | { | ||
- | " | ||
- | " | ||
- | " | ||
- | }, | ||
- | { | ||
- | " | ||
- | " | ||
- | " | ||
- | }, | ||
- | { | ||
- | " | ||
- | " | ||
- | " | ||
- | }, | ||
- | { | ||
- | " | ||
- | " | ||
- | " | ||
- | } | ||
- | ] | ||
- | </ | ||
- | |||
- | \\ | ||
- | ===== See also ===== | ||
- | * [[transformations: | ||
- | * [[transformations: | ||
- | * [[transformations: | ||
- | * [[transformations: | ||
- | * [[syntax: | ||
- | * [[https:// |