Skip to content
SoulFire LogoSoulFire

JSON

Inputs, outputs, and defaults of the 6 built-in nodes in the JSON category.

Generated from the pinned SoulFire source. Regenerate these pages with bun run generate-node-reference.

JSON Array

json.array

Creates a JSON array from multiple inputs

Also called: json, array, list, create, build.

Inputs

PortTypeRequired / defaultDescription
items (Items)anyOptionalItems to include in array Multi-input collection is not implemented by the reactive engine.

Outputs

PortTypeDescription
array (Array)stringJSON array string

Implementation

JSON Get

json.get

Extracts a value from JSON using a path expression

Also called: json, get, extract, path, query, access.

Inputs

PortTypeRequired / defaultDescription
json (JSON)stringRequiredJSON string or object
path (Path)stringRequiredPath expression (e.g., data.users[0].name)
defaultValue (Default)anynullValue if path not found

Outputs

PortTypeDescription
value (Value)anyExtracted value
found (Found)booleanWhether the path was found

Implementation

JSON Object

json.object

Creates a JSON object from key-value pairs

Also called: json, object, map, create, build, dictionary.

Inputs

PortTypeRequired / defaultDescription
keys (Keys)list<string>RequiredList of keys
values (Values)list<any>RequiredList of values

Outputs

PortTypeDescription
object (Object)stringJSON object string

Implementation

JSON Parse

json.parse

Parses a JSON string into a usable object

Also called: json, parse, deserialize, decode.

Inputs

PortTypeRequired / defaultDescription
json (JSON)stringRequiredJSON string to parse

Outputs

PortTypeDescription
result (Result)anyParsed JSON value
success (Success)booleanWhether parsing succeeded
errorMessage (Error Message)stringParse error if failed

Implementation

JSON Set

json.set

Sets a value in JSON at a specified path

Also called: json, set, modify, update, write.

Inputs

PortTypeRequired / defaultDescription
json (JSON)string"{}"JSON string to modify
path (Path)stringRequiredPath where to set value
value (Value)anyRequiredValue to set

Outputs

PortTypeDescription
result (Result)stringModified JSON string
success (Success)booleanWhether the operation succeeded

Implementation

JSON Stringify

json.stringify

Converts a value to a JSON string with optional pretty printing

Also called: json, stringify, serialize, encode, format.

Inputs

PortTypeRequired / defaultDescription
value (Value)anyRequiredValue to convert
pretty (Pretty)booleanfalsePretty print with indentation

Outputs

PortTypeDescription
json (JSON)stringJSON string representation

Implementation

How is this page?

Last updated on