flatten_json
Convert nested JSON objects into dot-notation key-value pairs for simplified data access and transformation.
Instructions
Flatten nested JSON to dot-notation key-value pairs.
Parameters:
json_str — JSON string to flatten.
separator — Separator (default: '.').
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_str": "<json_str>"
},
"name": "flatten_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json_str | Yes | ||
| separator | No | . |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |