flatten_json
Flatten a nested JSON object.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"json_string": "<json_string>"
},
"name": "flatten_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| separator | No | Key separator | . |
| json_string | Yes | JSON string to flatten |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| valid | No | ||
| flattened | No | ||
| key_count | No | ||
| original_depth | No |