moveBinaryData.json•3.24 kB
{
"nodeType": "n8n-nodes-base.moveBinaryData",
"displayName": "Convert to/from binary data",
"description": "Move data between binary and JSON properties",
"version": [
1,
1.1
],
"properties": [
{
"name": "mode",
"displayName": "Mode",
"type": "options",
"default": "binaryToJson",
"description": "Move data from Binary to JSON",
"options": [
{
"name": "Binary to JSON",
"value": "binaryToJson",
"description": "Move data from Binary to JSON"
},
{
"name": "JSON to Binary",
"value": "jsonToBinary",
"description": "Move data from JSON to Binary"
}
]
},
{
"name": "setAllData",
"displayName": "Set All Data",
"type": "boolean",
"default": true,
"description": "Whether all JSON data should be replaced with the data retrieved from binary key. Else the data will be written to a single key.",
"displayOptions": {
"show": {
"mode": [
"binaryToJson"
]
}
}
},
{
"name": "sourceKey",
"displayName": "Source Key",
"type": "string",
"default": "data",
"description": "The name of the binary key to get data from. It is also possible to define deep keys by using dot-notation like for example: \"level1.level2.currentKey\".",
"placeholder": "data",
"required": true,
"displayOptions": {
"show": {
"mode": [
"binaryToJson"
]
}
}
},
{
"name": "destinationKey",
"displayName": "Destination Key",
"type": "string",
"default": "data",
"description": "The name the JSON key to copy data to. It is also possible to define deep keys by using dot-notation like for example: \"level1.level2.newKey\".",
"placeholder": "",
"required": true,
"displayOptions": {
"show": {
"mode": [
"binaryToJson"
],
"setAllData": [
false
]
}
}
},
{
"name": "convertAllData",
"displayName": "Convert All Data",
"type": "boolean",
"default": true,
"description": "Whether all JSON data should be converted to binary. Else only the data of one key will be converted.",
"displayOptions": {
"show": {
"mode": [
"jsonToBinary"
]
}
}
},
{
"name": "options",
"displayName": "Options",
"type": "collection",
"default": {},
"description": "Whether to add special marker at the start of your text file. This marker helps some programs understand how to read the file correctly.",
"placeholder": "Add option",
"displayOptions": {
"show": {
"/mode": [
"jsonToBinary"
],
"encoding": "bomAware"
}
}
}
],
"credentialsConfig": [],
"io": {
"inputs": [],
"outputs": [],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [],
"produces": []
}
}