Decode (GCF to JSON)
AI-generatedSummary
Decode a GCF string back to JSON, storing the result in a configurable output field.
Inputs
- inputData — GCF-formatted string to decode, supplied as a field reference (e.g., "data") or literal text.
- outputField — Name of the field where the decoded JSON will be stored.
- additionalOptions — Container for extra settings; currently supports "Include Token Metrics" to add token count comparison data.
Output shape
An array of items, each containing a JSON object with the decoded data under the specified outputField, and optionally a tokenMetrics object when Include Token Metrics is enabled.
If ContinueOnFail is disabled the node throws on error; otherwise it returns an error object. The output array length equals the number of input items.
Examples
Example 1: Convert a GCF payload stored in field "data" to JSON and store it in field "result".
Input Data: {{data}}; Output Field: result; Additional Options: (default).
Example 2: Decode a raw GCF string manually entered and enable token metrics.
Input Data:
Example 3: Process a list of GCF strings, decoding each and placing results in the default "data" field.
Input Data: item; Output Field: data; Additional Options: (default).