flatten
Convert nested JSON objects into dot-notation key-value pairs, using optional path, separator, and depth limits to simplify querying and analysis.
Instructions
Flatten a nested JSON object into dot-notation key-value pairs.
Converts nested structures like {"a": {"b": 1}} into {"a.b": 1}. Walks as deep as Python allows unless max_depth is set.
Args: alias: The alias of the loaded document. path: Dot-notation path to the object to flatten. Empty means root. separator: The separator for flattened keys (default "."). max_depth: Stop after this many nested levels. Omit to walk the full safe depth.
Returns: A flat mapping of dotted-path keys to their values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| alias | Yes | ||
| max_depth | No | ||
| separator | No | . |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |