Actions74
- ai Actions
- array Actions
- audiovideo Actions
- carbone Actions
- charts Actions
- code Actions
- data Actions
- datetime Actions
- events Actions
- files Actions
- geo Actions
- hellospaces Actions
- images Actions
- Get Metadata of an Image
- Scale an Image
- Overlay an Image on another Image
- Scale an Image to Fit Given Dimensions
- Resize an Image
- Mask an Image with Another Image
- Mask an Image with a Circle Mask
- Crops an image by the given x, y, width and height paramters.
- Convert Texts to an Image
- Convert HTML String or URL to an Image
- Generates a QRCode with given text and color.
- Get EXIF from Image
- Remove EXIF from Image
- Modify Image EXIF
- playground Actions
- spreadsheet Actions
- stripe Actions
- youtube Actions
data → Parse String to JSON
AI-generatedOverview
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
1001fxApicredentials 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.