Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON Results Collapse ALL #1257

Open
christatedavies opened this issue Jul 15, 2015 · 31 comments
Open

JSON Results Collapse ALL #1257

christatedavies opened this issue Jul 15, 2015 · 31 comments

Comments

@christatedavies
Copy link

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

Cheers!

@johnnavarra
Copy link

you should be able to click these:
image

@christatedavies
Copy link
Author

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

@andrewduffy77
Copy link

+1 it's killing me!

@a85 a85 added transfer and removed transfer labels Jan 28, 2016
@codedmart
Copy link

I would love to see this feature as well.

@golubitsky
Copy link

+1!

@Nexen23
Copy link

Nexen23 commented Feb 2, 2016

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

@nategranatir
Copy link

+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.

@ms88privat
Copy link

👍

8 similar comments
@ankitj
Copy link

ankitj commented Mar 22, 2016

+1

@aguetat
Copy link

aguetat commented Apr 4, 2016

+1

@dtw45
Copy link

dtw45 commented Apr 8, 2016

+1

@bilalshahid10
Copy link

+1

@sebrandon1
Copy link

+1

@gotwilk890
Copy link

+1

@voxon2
Copy link

voxon2 commented May 18, 2016

+1

@andreykats
Copy link

+1

@abhijitkane
Copy link
Member

abhijitkane commented Jun 22, 2016

@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.

@andreykats
Copy link

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

@abhijitkane
Copy link
Member

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

@nategranatir
Copy link

@abhijitkane you're a hero

@bhawna2109 bhawna2109 added this to Suggestions in Data Editor Mar 9, 2017
@wzup
Copy link

wzup commented Jul 25, 2017

@abhijitkane

(#1257 (comment)):

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

@ernestojpg
Copy link

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? :)

@dotancohen
Copy link

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.

@a85 a85 self-assigned this Jun 29, 2018
@sargin48
Copy link

sargin48 commented Aug 2, 2018

+1 Collapse all / expand all xml json

@ActionScripted
Copy link

+1 Collapse/expand all toggles.

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

@asbachb
Copy link

asbachb commented Mar 19, 2019

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

@aaroncrawford
Copy link

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.

@dotancohen
Copy link

@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.

@shamasis
Copy link
Member

shamasis commented Jul 8, 2019

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.

@clemkake
Copy link

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

@saswatds saswatds added this to Pending triage in Runtime Triage and Development via automation Jul 21, 2020
@saswatds saswatds moved this from Pending triage to Now in Runtime Triage and Development Jul 21, 2020
@saswatds saswatds moved this from Now to Ready in Runtime Triage and Development Jul 21, 2020
@saswatds saswatds moved this from Ready to Later in Runtime Triage and Development May 20, 2021
@MrSankofa
Copy link

MrSankofa commented Apr 19, 2024

If you looking at this in 2024, the shortcuts have changed and command + option + 0 no longer works for mac users

it's now

command + k + 0 to collapse all
command + K + J to open

https://community.postman.com/t/command-option-0-wont-collapse-all/11861

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Data Editor
Suggestions
Shortcuts
Suggestions
Variables
Suggestions
Development

No branches or pull requests