[PR #847] [MERGED] Add format body option #2897

Closed
opened 2026-03-17 00:33:48 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/847
Author: @sboulema
Created: 5/6/2020
Status: Merged
Merged: 5/7/2020
Merged by: @AndrewBastin

Base: masterHead: feature/add-format-body-option-#767


📝 Commits (3)

  • 98cb9b3 Add format body option
  • 5c5fa5c Only show prettify button when request body is JSON
  • a25b0d0 Only show prettify button when raw input is enabled

📊 Changes

2 files changed (+20 additions, -0 deletions)

View changed files

📝 lang/en-US.json (+2 -0)
📝 pages/index.vue (+18 -0)

📄 Description

Adds a button to prettify the json request body.

Prettify

Shows a toast error if the body isn't a proper json string.

This PR fixes #767.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/847 **Author:** [@sboulema](https://github.com/sboulema) **Created:** 5/6/2020 **Status:** ✅ Merged **Merged:** 5/7/2020 **Merged by:** [@AndrewBastin](https://github.com/AndrewBastin) **Base:** `master` ← **Head:** `feature/add-format-body-option-#767` --- ### 📝 Commits (3) - [`98cb9b3`](https://github.com/hoppscotch/hoppscotch/commit/98cb9b32340fee04b9ae9f5ea3eb50b68fab907f) Add format body option - [`5c5fa5c`](https://github.com/hoppscotch/hoppscotch/commit/5c5fa5c4bc9464c4450fcafd4e635705ef30a2d9) Only show prettify button when request body is JSON - [`a25b0d0`](https://github.com/hoppscotch/hoppscotch/commit/a25b0d03492a758913f03b89af7ae06d4be6788d) Only show prettify button when raw input is enabled ### 📊 Changes **2 files changed** (+20 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `lang/en-US.json` (+2 -0) 📝 `pages/index.vue` (+18 -0) </details> ### 📄 Description Adds a button to prettify the json request body. [![Prettify](https://i.imgur.com/9JqMouv.png)](https://i.imgur.com/9JqMouv.png) Shows a toast error if the body isn't a proper json string. This PR fixes #767. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 00:33:48 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#2897
No description provided.