addFieldInJSON
This operator adds a new field to the JSON object.
Operator Usage in Easy Mode
- Click + on the parent node.
- Enter the Add field in Jsonoperator in the search field and select the operator from the Results to open the operator form.
- In the Input Table drop-down, enter or select a table from which to source the data.
- In the Json Column field, choose the column that contains the JSON object.
- In the Path field, enter the field path to be added to the JSON object.
- In the Field Value field, choose the value of the provided field.
- Click Run to view the result.
- Click Cancel to discard the operator form.
Usage Details
addFieldInJson(inputTable: TableReference, jsonColumn: ColumnReference, path: String, fieldValue: ColumnReference)
Input Parameters:
inputTable
(TableReference): The table containing the data to run this operator on.
jsonColumn
(ColumnReference): The column that contains JSON object.
path
(String): Field path to be added to JSON object.
fieldValue
(ColumnReference): Value of the provided field.
Output
This operator will add a new key-value pair to the existing JSON object.
Updated 7 months ago