tulios / json-viewer

It is a Chrome extension for printing JSON and JSONP.
https://chrome.google.com/webstore/detail/json-viewer/gbmdgpbipfallnflgajpaliibnhdgobh
MIT License
3.31k stars 678 forks source link

Show bytes size along count number for both object and array #248

Open xuanswe opened 4 years ago

xuanswe commented 4 years ago

It would be great if json-viewer allows to show information of byte size along with count of children. Please check how JSON Lite implements this nice feature: image

This extra information should not be selected, because most of the time we want to copy only selection text of json.

LiorHalfon commented 4 years ago

This task can be broken down into Two. One for the count of elements and one for the size in bytes. In my opinion, the count of elements in the array is more important, and it is also the standard in other JSON viewers.