This n8n workflow demonstrates how to generate a simple JSON object, encode it as a binary data stream, and save it as a JSON file on the system. The process begins with creating example data using a Function node, which outputs a JSON object with sample text and number values. This data is then converted into a binary format via a second Function node, which encodes the JSON string into Base64. Finally, the binary data is written to a file named ‘test.json’ on the local filesystem using the Write Binary File node. This automation is useful for scenarios where JSON data needs to be programmatically generated, encoded, and stored locally or for further processing, such as backups, data export, or preparing data for transmission.
Create and Save JSON Data as a Binary File in n8n
Node Count | 0 – 5 Nodes |
---|---|
Nodes Used | function, writeBinaryFile |
Reviews
There are no reviews yet.