1001fx - NoCode functions icon

1001fx - NoCode functions

1001fx is a set of functions for any automation platform. Our functions are simple, very well tested, scalable and offer features that most automation platforms do not offer.

Actions74

data → Transform JSON format

AI-generated

Overview

The 1001fx - NoCode functions node, when configured with the Resource: data and Operation: Transform JSON format, allows you to transform input JSON data into a new structure using a user-defined template. This is particularly useful for mapping, restructuring, or reformatting JSON objects within your n8n workflows—such as preparing API payloads, cleaning up incoming data, or converting between different data schemas.

Practical examples:

  • Mapping fields from one API's response to another API's expected request format.
  • Restructuring nested JSON data for easier downstream processing.
  • Extracting and renaming specific properties from complex JSON objects.

Properties

Name Meaning
JSON Template Template to be filled with data. Defines how the output JSON should be structured.
JSON Input JSON with data. The source data that will be transformed according to the template.

Output

  • json: The output will be a JSON object resulting from applying the provided template to the input JSON data. The structure of this output depends entirely on the template you provide.
    • If the transformation is successful, the output will match the template's structure, populated with values from the input.
    • If an error occurs (e.g., invalid template or input), the output may contain an error field with details about the issue.

Example output:

{
  "result": {
    "name": "John Doe",
    "email": "john@example.com"
  }
}

Or, in case of error:

{
  "error": "Invalid template syntax"
}

Dependencies

  • External Service: Requires access to the 1001fx API.
  • API Key: You must configure the 1001fxApi credential in n8n.
  • Environment: Internet access is required for the node to communicate with the 1001fx service.

Troubleshooting

Common issues:

  • Invalid Template or Input: If the JSON Template or JSON Input is malformed, the node may return an error in the output.
  • Authentication Errors: If the 1001fxApi credential is missing or incorrect, requests will fail.
  • API Connectivity Issues: Network problems or downtime at 1001fx can cause failures.

Error messages:

  • "Invalid template syntax": Check your JSON Template for correct syntax.
  • "Authentication failed": Ensure your API key is set up correctly in n8n credentials.
  • "Network error" or "Request failed": Verify internet connectivity and the status of the 1001fx API.

Links and References

Discussion