Actions22
- Tool Actions
- Other Tool Actions
- Date Operation Actions
- Text & Formatting Actions
Other Tool → Stringify Object
AI-generatedOverview
The "Stringify Object" operation in the "Other Tool" resource converts a JSON object into its string representation. This is useful when you need to serialize an object for storage, logging, or transmission over a network where only strings are accepted.
Common scenarios include:
- Preparing JSON data to be sent as a string payload in HTTP requests.
- Logging complex objects in a readable string format.
- Exporting structured data as formatted JSON text.
For example, given an input object { "name": "Alice", "age": 30 } and indentation level 2, the node outputs a pretty-printed JSON string with two spaces indentation.
Properties
| Name | Meaning |
|---|---|
| Input Object | The JSON object to convert into a string. |
| Indentation | Number of spaces used for indentation in the output string. 0 means no indentation. |
Output
The node outputs a JSON object with the following fields:
inputObject: The original input JSON object.jsonString: The resulting JSON string after serialization.stringLength: Length (number of characters) of the JSON string.indentation: The indentation level used during stringification.
This output allows downstream nodes to access both the original object and its stringified form.
Dependencies
No external services or API keys are required for this operation. It relies solely on built-in JSON serialization capabilities.
Troubleshooting
- Invalid JSON object provided: This error occurs if the input object cannot be serialized by
JSON.stringify. Ensure the input is a valid JSON object without circular references or unsupported types. - Indentation issues: If the indentation property is set to a non-integer or negative number, unexpected formatting may occur. Use zero or positive integers only.