CustomJE icon

CustomJE

Custom operations

Overview

This node provides a "Reformat JSON" operation under the "Data Processing" resource. It sends JSON text to an external API service that reformats and beautifies the JSON data, making it easier to read and work with. This is useful when you have minified or poorly formatted JSON strings and want to convert them into a clean, indented format for debugging, logging, or further processing.

Practical examples:

  • Beautifying JSON responses from APIs before saving or displaying.
  • Formatting JSON configuration files or payloads for better readability.
  • Cleaning up JSON data received as a single-line string for use in workflows.

Properties

Name Meaning
API Key Your CustomJE API key used to authenticate requests to the reformatting service.
JSON Text The raw JSON string input that you want to reformat and beautify.

Output

The node outputs a JSON object containing the reformatted JSON data returned by the external API. The exact structure depends on the API response but generally includes the beautified JSON text.

If the API returns binary data (not indicated here), it would represent the reformatted content, but this node primarily deals with textual JSON data.

Dependencies

  • Requires an active internet connection to call the external CustomJE API endpoint at https://api.customje.com/reformat-json.php.
  • Requires a valid API key credential for authentication with the CustomJE service.
  • No additional environment variables or n8n configurations are explicitly required beyond setting the API key.

Troubleshooting

  • Invalid API Key or Authentication Errors: Ensure the API key is correctly entered and has the necessary permissions.
  • Malformed JSON Input: If the input JSON text is invalid or not well-formed, the API may return errors or fail to reformat. Validate JSON syntax before passing it to the node.
  • Network Issues: Connectivity problems can cause request failures. Verify network access to the API endpoint.
  • API Limitations or Downtime: The external service might impose rate limits or experience downtime; check service status if unexpected errors occur.
  • Unhandled Operation or Resource Errors: The node throws errors if the selected resource or operation is unknown or not implemented. Confirm correct selection of "Data Processing" resource and "Reformat JSON" operation.

Links and References

Discussion