[PR #2370] [MERGED] fix: curl parser json detection issues #3764

Closed
opened 2026-03-17 01:20:58 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/2370
Author: @kyteinsky
Created: 5/27/2022
Status: Merged
Merged: 6/18/2022
Merged by: @AndrewBastin

Base: mainHead: fix/json-curl-parser


📝 Commits (3)

  • 9c4d4de fix: replace backslashes in content type detection of JSON
  • a324e0d fix: revert JSON detection and parsing to not fiddle with backlashes
  • 0746da3 chore: getFormattedJSON returns a string instead of an option

📊 Changes

1 file changed (+6 additions, -9 deletions)

View changed files

📝 packages/hoppscotch-app/helpers/curl/sub_helpers/contentParser.ts (+6 -9)

📄 Description

Description:

Replace \\" with " for detection of JSON content.


🔄 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/2370 **Author:** [@kyteinsky](https://github.com/kyteinsky) **Created:** 5/27/2022 **Status:** ✅ Merged **Merged:** 6/18/2022 **Merged by:** [@AndrewBastin](https://github.com/AndrewBastin) **Base:** `main` ← **Head:** `fix/json-curl-parser` --- ### 📝 Commits (3) - [`9c4d4de`](https://github.com/hoppscotch/hoppscotch/commit/9c4d4deb88864d08584604d22b7da655a2159e1a) fix: replace backslashes in content type detection of JSON - [`a324e0d`](https://github.com/hoppscotch/hoppscotch/commit/a324e0d321a2128186b63c2a960a89630f2b8a79) fix: revert JSON detection and parsing to not fiddle with backlashes - [`0746da3`](https://github.com/hoppscotch/hoppscotch/commit/0746da32d692fe51cf6035181069adde4408aef9) chore: getFormattedJSON returns a string instead of an option ### 📊 Changes **1 file changed** (+6 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-app/helpers/curl/sub_helpers/contentParser.ts` (+6 -9) </details> ### 📄 Description ### Description: Replace `\\"` with `"` for detection of JSON content. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 01:20:58 +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#3764
No description provided.