Compare performance and size
releaseSize Comparison
react-json-view-lite is designed to be lightweight compared to other popular React JSON viewers like react-json-inspector or react-json-view.
Performance
Performance was measured using react-component-benchmark with a 300Kb JSON file. While react-json-pretty is faster, it lacks the ability to collapse/expand nested objects. react-json-view-lite provides a balance of performance and interactive features.
| Library | Average Render (ms) | Median Render (ms) |
|---|---|---|
| react-json-view-lite | 195 | 82 |
| react-json-pretty | 32 | 24 |
| react-json-inspector | 758 | 711 |
| react-json-tree | 658 | 620 |
| react-json-view | 1529 | 1540 |
| react-json-tree-viewer | 320 | 278 |