json_convert
Convert JSON to XML, YAML, or GET parameter strings, or parse those formats back into JSON. Specify target format and direction to transform data between structures.
Instructions
JSON 与其他格式互转。target 可选 xml(JSON↔XML)、yaml(JSON↔YAML)、get_params(JSON 对象↔GET 参数字符串)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | 输入内容(JSON 或目标格式内容) | |
| target | Yes | 目标格式 | |
| direction | No | 转换方向:to_target=将 JSON 转成目标格式;from_target=将目标格式解析为 JSON | to_target |