RESTED icon indicating copy to clipboard operation
RESTED copied to clipboard

Ability to Collapse/Expand Reponse JSON

Open ceyhunkerti opened this issue 8 years ago • 4 comments

screenshot at 2017-06-23 13 51 54

can you add expand and collapse for the json response ?

ceyhunkerti avatar Jun 23 '17 10:06 ceyhunkerti

Hey,

Sure I can, thanks for the suggestion. There are other things that are higher priority though, so it will have to wait a while.

eliihen avatar Jun 23 '17 10:06 eliihen

FF provides a json viewer, so couldn't this be used if present? It would avoid you having to provide similar functionalities:

https://developer.mozilla.org/en-US/docs/Tools/JSON_viewer

Idk if Chrome offers something similar.

Jiehong avatar Jun 26 '17 09:06 Jiehong

I want to make the application as cross-platform uniform as possible, so I'm more in favor of using a library like for example react-json-tree

Edit: react-inspector offers a DOM inspector as well, which could be pretty cool for HTML responses

eliihen avatar Jul 27 '17 17:07 eliihen

Got started hacking on this, work is in progress over at feature/formatted-response.

There will be an option where you can decide what response renderer you want, so the old way will still be supported

screen shot 2017-08-08 at 21 16 08 screen shot 2017-08-08 at 21 31 36

eliihen avatar Aug 08 '17 20:08 eliihen