TOON icon

TOON

JSON 与 TOON 格式互转,TOON 是一种面向 Token 优化的对象表示法,可减少约 40% 的 Token 消耗

TOON 转 JSON

AI-generated

Summary

Parse a TOON-formatted string into JSON, storing the result in a specified output field.

Inputs

  • TOON 数据 (required) — The TOON format text to parse into JSON.
  • 输出字段 — The name of the field to store the parsed JSON result (default: 'data').
  • 高级选项.decodeOptions.展开路径 — Controls converting dot-separated keys into nested objects, with options 'off' (no expansion) or 'safe' (safe mode).
  • 高级选项.decodeOptions.严格模式 — Boolean to enforce strict parsing rules for array counts, indentation, and validation; defaults to true.

Output shape

a single record containing the parsed JSON in the specified output field key

If parsing fails, it throws an error unless 'Continue On Fail' is enabled, in which case an error field appears in the output JSON.

Examples

Example 1: Input TOON text representing structured data, parse it to native JSON objects.

Set operation to 'TOON 转 JSON', provide TOON text in 'TOON 数据', optionally adjust '展开路径' and '严格模式', and set '输出字段' for the output key.

Links

Discussion