Rename properties¶
Description¶
Renames selected properties of Source array
Input/Output¶
Source array : array <= Source
Property : value <= Option
Value : value <= Source or User
Output : array
Usage¶
- Connect a source to the operator
- Drag an array from the source tree and drop it into input field Source array
- If you want to manually add Value, select Property and type a Value, then click on Add property; otherwise, click on OK
- Connect a source to the operator
- Select Property
- Drag a value from the source tree and drop it into input field Value
- Click on Add property
- Click on OK
You can repeat steps 4-8 any time you want
Example¶
Source array = [{"key1":"value1", "key2":10}, {"key1":"value2", "key2":12}, {"key1":"value3", "key2":13}]
Property = "key2"
Value = "size"
Output = [{"key1":"value1", "size":10}, {"key1":"value2", "size":12}, {"key1":"value3", "size":13}]