DRAGOPS
DRAGOPS
DocumentationNode libraryType Conversion

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.

PinDirectionTypeDescription
ValueInputAnyThe value to convert
ResultOutputStringString 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.

PinDirectionTypeDescription
ValueInputStringThe string to parse
ResultOutputFloatParsed 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.

PinDirectionTypeDescription
ValueInputAnyThe value to convert
ResultOutputIntegerInteger 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.

PinDirectionTypeDescription
ValueInputAnyThe value to convert
ResultOutputBooleanBoolean 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).

PinDirectionTypeDescription
JSON StringInputStringThe JSON text to parse
ResultOutputAnyParsed 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.

PinDirectionTypeDescription
ValueInputAnyThe value to serialize
IndentInputIntegerIndentation spaces (default: 2)
JSON StringOutputStringJSON 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.

PinDirectionTypeDescription
ValueInputAnyThe value to inspect
TypeOutputStringType name ("string", "integer", "float", "boolean", "object", "array", "null")

Pure. Use Type Of to inspect dynamic data before processing — routing different types to different logic.


  • Comparison — Type Is node for boolean type checks
  • Literals — produce typed constant values
  • Data Formats — parse and generate CSV, XML, YAML beyond JSON

On this page