-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or requestnested-jsonRelated to nested jsonRelated to nested json
Description
Plan:
- Add a --depth flag to CLI.
- Limit recursion based on user-defined depth.
- Default to Infinity if no depth is provided.
Steps:
- Update cli.js and index.js to accept --depth as an argument.
- Modify flattenJson:
- Add a currentDepth tracker.
- Stop flattening when the defined depth is reached.
Example CLI usage
json-to-table-cli --file users.json --output table.md --depth 2
Challenges:
- Ensuring partial objects display correctly.
- Balancing performance when flattening large datasets.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestnested-jsonRelated to nested jsonRelated to nested json