The To JSON Block converts any input value into its JSON string representation. This is useful for serializing data structures, debugging, or preparing data for storage or transmission in a text format.
Most JavaScript values can be converted including objects, arrays, strings, numbers, booleans, and null. Functions, undefined values, and circular references cannot be converted to JSON.
Will the output JSON be formatted/pretty-printed?
No, the output JSON will be compact without extra whitespace. To format the JSON, you can use a Code Block with JSON.stringify’s space parameter.