postman-app-support icon indicating copy to clipboard operation
postman-app-support copied to clipboard

JSON Results Collapse ALL

Open christatedavies opened this issue 9 years ago • 31 comments

I'd love it if there was a shortcut to collapse all the nodes in the body response (for JSON results)

Cheers!

christatedavies avatar Jul 15 '15 14:07 christatedavies

you should be able to click these: image

johnnavarra avatar Jul 15 '15 14:07 johnnavarra

Thanks, but I am looking for a shortcut to collapse ALL in one click.

christatedavies avatar Jul 15 '15 15:07 christatedavies

+1 it's killing me!

andrewduffy77 avatar Oct 20 '15 05:10 andrewduffy77

I would love to see this feature as well.

codedmart avatar Jan 30 '16 17:01 codedmart

+1!

golubitsky avatar Feb 02 '16 00:02 golubitsky

I'm really dissapointed. Without this feature it is almost useless for me. I will use something else than :(

Nexen23 avatar Feb 02 '16 08:02 Nexen23

+1 this makes a big difference when you get a huge response and want to traverse by node. without collapse all, for larger responses I have to copy/paste the response into another viewer.

nategranatir avatar Mar 11 '16 01:03 nategranatir

:+1:

ms88privat avatar Mar 11 '16 14:03 ms88privat

+1

ankitj avatar Mar 22 '16 19:03 ankitj

+1

aguetat avatar Apr 04 '16 09:04 aguetat

+1

dtw45 avatar Apr 08 '16 17:04 dtw45

+1

bilalshahid10 avatar Apr 11 '16 06:04 bilalshahid10

+1

sebrandon1 avatar Apr 20 '16 14:04 sebrandon1

+1

gotwilk890 avatar Apr 27 '16 20:04 gotwilk890

+1

voxon2 avatar May 18 '16 12:05 voxon2

+1

andreykats avatar Jun 22 '16 16:06 andreykats

@andreykats @voxon2 @gotwilk890 @sebrandon1 @bilalvirgo10 @dtw45 @aguetat @ankitj @ms88privat You can use Alt-0 (Win) / Command-Option-0 (Mac) for 'fold all', and Alt-Shift-0 (Win) / Command-Option-Shift-0 (Mac) for 'Unfold all'. The focus will have to be on the response JSON/XML, though.

abhijitkane avatar Jun 22 '16 20:06 abhijitkane

@abhijitkane Amazing! Let's put this in the documentation.

andreykats avatar Jun 22 '16 21:06 andreykats

Yep. All AceEditor shortcuts (https://github.com/ajaxorg/ace/wiki/Default-Keyboard-Shortcuts) should work.

abhijitkane avatar Jun 22 '16 21:06 abhijitkane

@abhijitkane you're a hero

nategranatir avatar Jun 22 '16 22:06 nategranatir

@abhijitkane

(https://github.com/postmanlabs/postman-app-support/issues/1257#issuecomment-227872031):

You can use Alt-0 (Win).....

Is there an option to have a JSON response first level fields collapsed by default? In order to make less keyboard clicks to collapse them

wzup avatar Jul 25 '17 18:07 wzup

That's cool, but I never remember the shortcut. Why isn't there an easy to see button, or an option in a contextual menu for doing it? :)

ernestojpg avatar Oct 19 '17 20:10 ernestojpg

Note that to unfold a portion of JSON with Alt-Shift-L (See abhijitkane's comment for link), the cursor must be on the folded marker, not simply on the line.

dotancohen avatar Jan 29 '18 09:01 dotancohen

+1 Collapse all / expand all xml json

sargin48 avatar Aug 02 '18 11:08 sargin48

+1 Collapse/expand all toggles.

Would be great to have a larger inline expand/collapse toggle, too, similar to how Firefox handles JSON.

ActionScripted avatar Aug 08 '18 21:08 ActionScripted

I guess an option to collapse a json response in general would be quite useful for some people.

asbachb avatar Mar 19 '19 10:03 asbachb

And if we want to get real crazy, an option to fold per level would be fantastic. Something like CMD+OPT 1 folds to level 1, CMD+OPT+2 folds level 2 etc.

aaroncrawford avatar May 17 '19 21:05 aaroncrawford

@aaroncrawford : You mean Ctrl-Alt-1, Ctrl-Alt-2 :) Yes, I agree that would be absolutely terrific. Most of the time we are interested in the actual response, and a good way to navigate the response would be very helpful.

dotancohen avatar May 22 '19 06:05 dotancohen

This has already been added. We need to have this documented and perhaps even highlighted as contextual in-product documentation. 🤦‍♂ Will close the ticket when the doc goes live.

shamasis avatar Jul 08 '19 15:07 shamasis

Ah finally a good answer @shamasis I was hoping to see that!

clemkake avatar Jul 10 '19 06:07 clemkake