[GH-ISSUE #2181] [bug]: Folding long JSON response folds only partially at first #740

Closed
opened 2026-03-16 16:58:39 +03:00 by kerem · 0 comments
Owner

Originally created by @JacekAndrzejewski on GitHub (Mar 21, 2022).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2181

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When I receive a long JSON response (2000+ lines) and try to fold it then at first only first few hundred lines are folded. If I expand and fold again it folds a bit more. Repeated enough times it folds everything.

Steps to reproduce

  1. Do an API call that returns a long JSON response
  2. Try to fold the response

First folding:
image

Second folding:
image

Easier to reproduce if responses are even longer, but sometimes even 200 lines are enough.

Environment

Production

Version

Cloud

Originally created by @JacekAndrzejewski on GitHub (Mar 21, 2022). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2181 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior When I receive a long JSON response (2000+ lines) and try to fold it then at first only first few hundred lines are folded. If I expand and fold again it folds a bit more. Repeated enough times it folds everything. ### Steps to reproduce 1. Do an API call that returns a long JSON response 2. Try to fold the response First folding: ![image](https://user-images.githubusercontent.com/29729811/159230774-f8ab7b15-644f-4893-91d5-dd42e3314169.png) Second folding: ![image](https://user-images.githubusercontent.com/29729811/159230848-93ba2827-9c5f-42e4-bd69-3c8c372543ab.png) Easier to reproduce if responses are even longer, but sometimes even 200 lines are enough. ### Environment Production ### Version Cloud
kerem 2026-03-16 16:58:39 +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#740
No description provided.