分类

JSON扁平化工具

将嵌套的JSON对象转换为键值对,支持自定义分隔符和扁平化策略

API 文档

请求端点

POST /zh/api/tools/json-flattener

请求参数

参数名 类型 必填 描述
jsonInput textarea -
strategy select -
delimiter text -
maxDepth number -
includeArrays checkbox -
filterNulls checkbox -
preserveOrder checkbox -
sortKeys select -

响应格式

{
  "key": {...},
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
JSON数据: JSON数据

AI MCP 文档

将此工具添加到您的 MCP 服务器配置中:

{
  "mcpServers": {
    "elysiatools-json-flattener": {
      "name": "json-flattener",
      "description": "将嵌套的JSON对象转换为键值对,支持自定义分隔符和扁平化策略",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=json-flattener",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

你可以串联多个工具,比如:`https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`,最多20个。

如果遇见问题,请联系我们:[email protected]