Data Converter
Convert between various data formats - Base64, Binary, JSON, XML, YAML, CSV, HTML, and more
Actions49
- Base64 Actions
- Binary Actions
- Encoding Actions
- Format Actions
- HTML Actions
- String Actions
Overview
The node converts binary data to JSON format. It is useful when you have binary input (e.g., files or raw data) that encodes JSON content, and you want to parse it into a structured JSON object for further processing in your workflow.
Common scenarios include:
- Receiving JSON data as a file or binary stream and needing to extract the JSON object.
- Processing API responses or file contents stored as binary that represent JSON.
- Integrating with systems that provide JSON data in binary form.
Example: You receive a binary file containing JSON data from an external source. Using this node's "Binary to JSON" operation, you can convert that binary data into a JSON object to use in subsequent nodes.
Properties
| Name | Meaning |
|---|---|
| Binary Property | The name of the binary property on the input item that contains the binary data to convert. Default is "data". |
Output
- The output contains a
jsonfield with the parsed JSON object extracted from the binary data. - No binary output is produced by this operation.
- The original binary data is decoded and parsed as JSON, so the output JSON structure corresponds to the content encoded in the binary input.
Dependencies
- Requires binary input data accessible via the specified binary property.
- Uses internal helper methods to read binary buffers and parse them as JSON.
- No external API keys or services are required.
Troubleshooting
Common issues:
- The binary property specified does not exist or contains invalid data.
- The binary data is not valid JSON or is corrupted, causing parsing errors.
Error messages:
- Errors related to missing binary data will indicate the binary property could not be found.
- JSON parsing errors will mention invalid JSON or unexpected tokens.
Resolutions:
- Ensure the binary property name matches exactly the property containing the binary data.
- Verify the binary data actually encodes valid JSON.
- Use preceding nodes to validate or transform the binary data if necessary.