Text: JSON

Nodes in this category perform string operations involving JSON data, such as parsing and stringifying.

Nodes

NodeDetailsPossible Types
Format JSON

Reformats a JSON string with control over indentation, line breaking, and spacing. Trailing commas are tolerated. Otherwise-invalid JSON input is returned unchanged.

String → String
Query JSON

Extracts a single matched value from a JSON string using a path expression (see that parameter's description for its syntax). If no matches are found, an empty string is returned. If multiple values are matched, the first is returned. To read all matches, use the Query JSON All node.

This is useful in conjunction with the nodes:

String to Number: convert numeric query results to numbers.

String ValueEquals: convert "true", "false", or "null" query results to bools.

String → String
Query JSON All

Extracts every matched value from a JSON string using a path expression (see that parameter's description for its syntax). A list of zero or more resultant strings is produced. The [] path accessor is used to read more than one value.

This is useful in conjunction with the nodes:

Index Elements: access the Nth query result.

String to Number: convert numeric query results to numbers.

String ValueEquals: convert "true", "false", or "null" query results to bools.

String → Vec<String>