mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #3584] Prettier for RAW responses #1231
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#1231
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @spiderock98 on GitHub (Nov 22, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3584
Is there an existing issue for this?
Summary
When server response data is array of object . It cannot be format as JSON pretty version. I found in setting and docs but cannot find any config for this. Thank you for review
Why should this be worked on?
I think this is a basicly feature
@liyasthomas commented on GitHub (Nov 22, 2023):
This might be because the response has an incorrect
Content-Typeheader. Usually, JSON responses have aContent-Type: application/jsonwhich we check internally to prettify and format the response.Can you confirm the response headers list has a proper
Content-Typeassociated with JSON?@spiderock98 commented on GitHub (Nov 22, 2023):
I have re-check and realize it just plain/text . I still hope there will parse json pretty despite of plain/text . because Postman and Insomnia still prettier plaintext data . btw Hoppscoth is super lightweight and fast ❤️
@marlonbasten commented on GitHub (Nov 22, 2023):
I will add something to that which may be a bit off-topic. This probably wouldn't have happened if you could set default headers at collection level. This is the main thing keeping me away from Hoppscotch. It's unusable if you have to define the Response type and API key for every single request. Imagine changing your api key on a collection with 300 requests.
@liyasthomas commented on GitHub (Nov 23, 2023):
Hi @marlonbasten, we’re working on collection level headers and authorization feature, expected to be released by December. Track its progress on #2259.
@spiderock98 commented on GitHub (Nov 23, 2023):
I add middleware to modify response header and it all works fine now
@jackdewhurst commented on GitHub (Mar 19, 2024):
Is there any scope to add auto detect or an override feature to response formatting? Similarly to how Postman/Insomnia do it?
I don't want to have to add middleware in order to have my HTML responses formatted as JSON.
@koldle commented on GitHub (Jun 7, 2024):
Hi @liyasthomas, I believe this issue has not been resolved. Setting request headers at the collection level does not solve the problem of response body formatting for non-JSON response headers. Could you please reopen this issue?
@lukepighetti commented on GitHub (Jun 20, 2024):
a lot of json endpoints return the wrong content type, we should still try to format them, imo
@linto11 commented on GitHub (Dec 31, 2024):
do we have a fix for this?
@Phaired commented on GitHub (May 7, 2025):
Is there still no workaround or fix? This is very annoying for a poorly designed API.