Customje icon

Customje

Custom operations

Overview

This node provides custom operations via the Customje API, focusing on transforming and validating JSON data among other utilities. The "Reformat Json" operation specifically takes a JSON string input, sends it to the Customje API for reformatting and validation, and returns the cleaned-up JSON output.

Common scenarios where this node is beneficial include:

  • Cleaning up poorly formatted or minified JSON strings.
  • Validating JSON structure before further processing in workflows.
  • Standardizing JSON formatting for consistent downstream usage.

Practical example:

  • You receive JSON data as a plain text string from an external source with inconsistent spacing or line breaks. Using this node’s "Reformat Json" operation, you can automatically format it into a readable, validated JSON object for easier handling in subsequent workflow steps.

Properties

Name Meaning
API Key Customje API Key for authentication (required).
Text JSON code to reformat and validate; input should be a JSON string (required).

Output

The node outputs a JSON array where each item corresponds to the API response for each input item processed.

For the "Reformat Json" operation, the json output field contains the reformatted and validated JSON returned by the Customje API. This typically includes the cleaned JSON structure that was submitted, potentially with corrections or standardized formatting applied.

No binary data output is produced by this operation.

Dependencies

  • Requires access to the Customje API endpoint at https://api.customje.com/reformat-json.php.
  • An API key credential for authenticating requests to the Customje service must be provided.
  • The node makes HTTP POST requests to the API using the provided API key and JSON text.

Troubleshooting

  • Invalid API Key or Authentication Failure: If the API key is missing, incorrect, or expired, the API will reject the request. Ensure the API key is valid and correctly entered.
  • Malformed JSON Input: If the input JSON string is not valid JSON, the API may return an error or fail to reformat properly. Validate the JSON syntax before sending or handle errors gracefully.
  • Network or API Errors: Connectivity issues or API downtime can cause request failures. Check network connectivity and Customje API status.
  • Unexpected API Response: If the API changes its response format, the node might not parse results correctly. Verify API documentation for updates.

Error messages from the node typically include HTTP status codes and error details returned by the API, which help diagnose issues.

Links and References

Discussion