Skip to content

Feature Request: Optional Line Number Support #53

@akshay-xp

Description

@akshay-xp

Is your feature request related to a problem? Please describe.
Currently, react-json-view-lite does not support displaying line numbers alongside the rendered JSON tree. This makes it difficult to reference or debug specific parts of deeply nested or large JSON documents, especially in developer tools or inspectors.

Describe the solution you'd like
It would be great to have an optional showLineNumbers prop that, when enabled:

  • Displays a vertical column on the left with line numbers
  • Dynamically adjusts as nodes are expanded/collapsed
  • Syncs the line numbers to visible rows in the tree

Image

Would love to see this as a built-in feature or even just better hooks/events to support this externally.

Thanks for the great library!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions