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 → Parse String to JSON

AI-generated

Overview

This node provides a "Parse String to JSON" operation under the "data" resource. It takes a string input and attempts to parse it into a JSON object. This is useful in scenarios where you receive data as a plain string (for example, from webhooks, APIs, or files) and need to convert it into structured JSON for further processing within your n8n workflow.

Practical examples:

  • Parsing a JSON-formatted string received from an HTTP request.
  • Converting CSV-to-JSON output that is delivered as a string.
  • Handling user input or file content that needs to be transformed into JSON for downstream automation steps.

Properties

Name Meaning
String Input String to be parsed

Output

  • json: The output will be a JSON object resulting from parsing the provided string. If the string cannot be parsed as valid JSON, the output will contain an error message instead.

Example successful output:

{
  "key1": "value1",
  "key2": 123
}

Example error output:

{
  "error": "Unexpected token ... in JSON at position ..."
}

Dependencies

  • External Service: Requires access to the 1001fx API (https://api.1001fx.com).
  • API Key: Needs 1001fxApi credentials configured in n8n.

Troubleshooting

  • Common Issues:

    • Invalid JSON String: If the input string is not valid JSON, the node will return an error message in the output.
    • Missing Credentials: If the required API key is not set up, the node will fail to execute.
    • Network Issues: Connectivity problems with the 1001fx API endpoint may cause failures.
  • Error Messages:

    • "Unexpected token ... in JSON at position ...": Indicates the input string is not properly formatted as JSON. Double-check the string for syntax errors.
    • "Request failed with status code ...": Check your API credentials and network connection.

Links and References

Discussion