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 selected key(s) when a node is folded. #237

Open steka opened 4 years ago

steka commented 4 years ago

It would be nice if keys could be listed on the options page that will be shown (with its value) when a node is folded (if found). Compressed to one line and maybe limited by n-characters.

Example, if "name" is the among the listed keys, and found in the node, then the folded node will be show as:

{"name": "Lorem ipsum" ↔}

instead of the current:

{↔}

and when key/value is "to long", just truncated with a trailing "...":

{"name": "Ut enim ad minim veniam, quis nostrud exercitation ... ↔}