Type Conversion
Nodes for converting between strings, numbers, booleans, JSON, and inspecting types at runtime.
Type Conversion nodes transform values from one type to another. They handle parsing strings to numbers, serializing objects to JSON, and inspecting value types at runtime.
All Type Conversion nodes are pure (blue header, no execution pins).
To String
Convert any value to its string representation.
| Pin | Direction | Type | Description |
|---|---|---|---|
| Value | Input | Any | The value to convert |
| Result | Output | String | String representation |
Pure. Use To String to prepare values for string operations — concatenation, logging, or building URLs.
To Number
Parse a string to a floating-point number.
| Pin | Direction | Type | Description |
|---|---|---|---|
| Value | Input | String | The string to parse |
| Result | Output | Float | Parsed number |
Pure. Use To Number to convert numeric strings from API responses or user input into numbers for math operations.
To Integer
Parse or truncate a value to an integer.
| Pin | Direction | Type | Description |
|---|---|---|---|
| Value | Input | Any | The value to convert |
| Result | Output | Integer | Integer value |
Pure. Use To Integer for whole number conversion — status codes, counts, or array indices from string sources.
To Boolean
Convert a value to boolean using truthy/falsy rules.
| Pin | Direction | Type | Description |
|---|---|---|---|
| Value | Input | Any | The value to convert |
| Result | Output | Boolean | Boolean interpretation |
Pure. Use To Boolean to normalize flag values — "true"/"false" strings, 0/1 numbers, or null checks.
Parse JSON
Parse a JSON string into a structured value (object, array, string, number, or boolean).
| Pin | Direction | Type | Description |
|---|---|---|---|
| JSON String | Input | String | The JSON text to parse |
| Result | Output | Any | Parsed value |
Pure. Use Parse JSON to convert string-encoded JSON from API responses, file contents, or environment variables into usable objects.
Format JSON
Serialize any value to a JSON string with optional indentation.
| Pin | Direction | Type | Description |
|---|---|---|---|
| Value | Input | Any | The value to serialize |
| Indent | Input | Integer | Indentation spaces (default: 2) |
| JSON String | Output | String | JSON text |
Pure. Use Format JSON to prepare objects for HTTP request bodies, logging, or file output.
Type Of
Get the runtime type name of a value.
| Pin | Direction | Type | Description |
|---|---|---|---|
| Value | Input | Any | The value to inspect |
| Type | Output | String | Type name ("string", "integer", "float", "boolean", "object", "array", "null") |
Pure. Use Type Of to inspect dynamic data before processing — routing different types to different logic.
Related categories
- Comparison — Type Is node for boolean type checks
- Literals — produce typed constant values
- Data Formats — parse and generate CSV, XML, YAML beyond JSON