Postman provides built-in functionality to format (beautify) JSON data, making it more readable. This applies to both JSON in your request body and JSON in the response you receive.
To format JSON in a Request Body:
- Open a new request or an existing one: in Postman.
- Navigate to the “Body” tab: of your request.
- Select the “raw” radio button.
- Choose “JSON (application/json)”: from the dropdown menu next to the “raw” option. This ensures Postman recognizes the content as JSON.
- Paste your unformatted JSON data: into the text area.
- Click the “Beautify” button. This button is usually located below the text area where you pasted your JSON, or you can use the keyboard shortcut
Ctrl + B (or Cmd + B on macOS). Postman will automatically indent and format your JSON for readability.
To format JSON in a Response Body:
- Send a request: that is expected to return a JSON response.
- In the response section, navigate to the “Body” tab.
- Ensure the “Pretty” view is selected. This is usually the default.
- Select “JSON”: from the format selector dropdown, which is usually located near the “Pretty” tab. Postman will then display the JSON response in a formatted, readable