flatten_json
Flatten nested JSON objects into a single-level structure. Apply a custom separator for nested key paths.
Instructions
Flatten nested JSON object into single-level 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 |
|---|---|---|---|
| json_string | Yes | JSON string to flatten | |
| separator | No | Separator for nested keys (default: .) | . |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |