[GH-ISSUE #2877] [feature]: Prettify response #927

Closed
opened 2026-03-16 17:43:15 +03:00 by kerem · 5 comments
Owner

Originally created by @marc0l92 on GitHub (Dec 12, 2022).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2877

Is there an existing issue for this?

  • I have searched the existing issues

Summary

When I call a JSON api that replies with a minified JSON it is really difficult to read the response.
I would be useful to have a prettify feature for the response:
image

Why should this be worked on?

Increase readability of API responses without using external tools to prettify the JSON.

Originally created by @marc0l92 on GitHub (Dec 12, 2022). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2877 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Summary When I call a JSON api that replies with a minified JSON it is really difficult to read the response. I would be useful to have a prettify feature for the response: ![image](https://user-images.githubusercontent.com/12623073/207164525-da7d937a-23c0-4387-bbbe-6dc5e67c7d65.png) ### Why should this be worked on? Increase readability of API responses without using external tools to prettify the JSON.
kerem 2026-03-16 17:43:15 +03:00
  • closed this issue
  • added the
    feature
    label
Author
Owner

@anwarulislam commented on GitHub (Dec 25, 2022):

@marc0l92 Currently, we prettify JSON before rendering it. There might be an issue with the JSON object when we try to stringify it with space.

<!-- gh-comment-id:1364738576 --> @anwarulislam commented on GitHub (Dec 25, 2022): @marc0l92 Currently, we prettify JSON before rendering it. There might be an issue with the JSON object when we try to stringify it with space.
Author
Owner

@anwarulislam commented on GitHub (Dec 25, 2022):

@AndrewBastin I have checked this. LJSON.parse() method is not working with this specific object. But, when I use JSON.parse() it works.

<!-- gh-comment-id:1364738605 --> @anwarulislam commented on GitHub (Dec 25, 2022): @AndrewBastin I have checked this. `LJSON.parse()` method is not working with this specific object. But, when I use `JSON.parse()` it works.
Author
Owner

@harish343 commented on GitHub (Feb 18, 2023):

how can i start work on this issue

<!-- gh-comment-id:1435707523 --> @harish343 commented on GitHub (Feb 18, 2023): how can i start work on this issue
Author
Owner

@liyasthomas commented on GitHub (Feb 18, 2023):

Hi @harish343, you can look into this feature request.

<!-- gh-comment-id:1435722039 --> @liyasthomas commented on GitHub (Feb 18, 2023): Hi @harish343, you can look into this feature request.
Author
Owner

@jaysoni-ash42 commented on GitHub (Apr 19, 2023):

@liyasthomas tried locally updating the lossless-json package version to 2.0.8 resolves this parsing issue.

<!-- gh-comment-id:1514635577 --> @jaysoni-ash42 commented on GitHub (Apr 19, 2023): @liyasthomas tried locally updating the lossless-json package version to 2.0.8 resolves this parsing issue.
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#927
No description provided.