Skip to content

Feature: Handle Nested JSON Conversion to Markdown #10

@krishana7911

Description

@krishana7911

Description:

Currently, the CLI converts only flat JSON structures into Markdown tables. However, when the JSON contains nested objects or arrays, the output becomes inconsistent. We need to brainstorm and decide how to represent nested structures effectively in Markdown.

Possible Approaches:

  • Flattening: Convert nested keys into dot notation (e.g., user.name, user.address.street).
  • Multi-line cells: Display nested objects as multi-line content within a single cell.
  • Separate tables: Create sub-tables for each nested object.
  • Custom formatting: Provide a user-defined template for complex structures.

Open Questions:

  • Should we handle arrays differently from objects?
  • How do we maintain readability while keeping the table concise?
  • Do we need additional CLI flags to toggle the handling mode?

Next Steps:

  • Discuss preferred approaches.
  • Choose a solution based on feasibility and usability.
  • Implement and test.

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions