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 Formatting of the request body #2378

Open
usubhash opened this Issue Oct 3, 2016 · 10 comments

Comments

Projects
None yet
@usubhash

usubhash commented Oct 3, 2016

  1. Postman Version: 4.7.2
  2. App (Chrome app or Mac app): Mac
  3. OS details: 10.11.6
  4. Is the Interceptor on and enabled in the app:
  5. Did you encounter this recently, or has this bug always been there:
  6. Expected behaviour:
  7. Console logs (http://blog.getpostman.com/2014/01/27/enabling-chrome-developer-tools-inside-postman/ for the Chrome App, View->Toggle Dev Tools for the Mac app):
  8. Screenshots (if applicable)

It will be great if postman has an option with which the pasted body in the request can be JSON formatted. This is helpful to organize the request copied from different places and edit if needed.

@a85 a85 added the feature label Oct 4, 2016

@SamvelRaja

This comment has been minimized.

SamvelRaja commented Oct 5, 2016

@usubhash You can prettify the JSON copied into the request body very easily, paste the JSON request body(raw), select JSON(application/json) and press Cmd/Ctrl + B It would be prettified automatically.
prettify request body

@usubhash

This comment has been minimized.

usubhash commented Oct 5, 2016

@SamvelRaja Thats awesome. Thanks for letting me know. Please let me know if this is documented.

@usubhash usubhash closed this Oct 5, 2016

@Alonski

This comment has been minimized.

Alonski commented Jul 11, 2018

I am commenting here even though a long time has passed.
This isn't documented in the Shortcuts section in Postman.

@vkaegis

This comment has been minimized.

Member

vkaegis commented Jul 11, 2018

@Alonski Thanks for the reminder! We'll go one step ahead and actually add a button in the UI for this (along with documenting the shortcut of course).

@vkaegis vkaegis added this to the Short term roadmap milestone Jul 11, 2018

@vkaegis vkaegis added the code-editor label Jul 11, 2018

@guntram

This comment has been minimized.

guntram commented Jul 24, 2018

@SamvelRaja using ctrl+B does not do anything in my postman raw json body.
But as a workaround, I can click on "code" on the right side, and there my json data will be shown prettified. I can copy it from there and paste it into the body...

@gysi

This comment has been minimized.

gysi commented Sep 10, 2018

The hidden ctrl+B Feature stopped working for me.

@hiimdoublej

This comment has been minimized.

hiimdoublej commented Sep 11, 2018

@gysi Me too

@sudoliyang

This comment has been minimized.

sudoliyang commented Sep 11, 2018

@gysi, I have the same issue.
My environment is Postman Version 6.3.0 (6.3.0)

@numaanashraf

This comment has been minimized.

Member

numaanashraf commented Sep 11, 2018

@gysi @hiimdoublej @sudoliyang This is a confirmed regression in v6.3.0. We are working on rolling out a fix for this in the next release.

@numaanashraf numaanashraf added the v6.3.x label Sep 11, 2018

@sudoliyang

This comment has been minimized.

sudoliyang commented Sep 11, 2018

@numaanashraf
sounds great 👍, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment