[GH-ISSUE #5129] [bug]: pw.response.body parse json error #1952

Closed
opened 2026-03-16 22:35:59 +03:00 by kerem · 5 comments
Owner

Originally created by @ChenLuoi on GitHub (Jun 6, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5129

Originally assigned to: @AndrewBastin, @jamesgeorge007 on GitHub.

Is there an existing issue for this?

  • I have searched existing issues and this bug hasn't been reported yet

Current behavior

The output of pw.response.body in Tests, return a map object, but actually it's an array.

original response:
Image

pw.response.body:
Image

Steps to reproduce

  1. send a request;
  2. content-type of response is 'application/json';
  3. response data contains a field with type is an array;
  4. in Tests, pw.response.body output a map object instead of actual array;

Logs and Screenshots


Environment

Production

Hoppscotch Version

Self-hosted

Interceptor

Not Applicable - Issue not related to network requests

Browsers Affected

Chrome

Operating System

Windows

Additional Information

deploy with aio docker image hoppscotch/hoppscotch:2025.5.1

Originally created by @ChenLuoi on GitHub (Jun 6, 2025). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5129 Originally assigned to: @AndrewBastin, @jamesgeorge007 on GitHub. ### Is there an existing issue for this? - [x] I have searched existing issues and this bug hasn't been reported yet ### Current behavior The output of pw.response.body in Tests, return a map object, but actually it's an array. original response: ![Image](https://github.com/user-attachments/assets/ea0478de-0f0c-4ea8-9654-f5d3df973dd2) pw.response.body: ![Image](https://github.com/user-attachments/assets/f784c8f8-757f-462d-8afc-d213fb3f9a1c) ### Steps to reproduce 1. send a request; 2. content-type of response is 'application/json'; 3. response data contains a field with type is an array; 4. in Tests, pw.response.body output a map object instead of actual array; ### Logs and Screenshots ```shell ``` ### Environment Production ### Hoppscotch Version Self-hosted ### Interceptor Not Applicable - Issue not related to network requests ### Browsers Affected Chrome ### Operating System Windows ### Additional Information deploy with aio docker image hoppscotch/hoppscotch:2025.5.1
kerem 2026-03-16 22:35:59 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@RaHehl commented on GitHub (Jun 6, 2025):

+1

<!-- gh-comment-id:2948352601 --> @RaHehl commented on GitHub (Jun 6, 2025): +1
Author
Owner

@jamesgeorge007 commented on GitHub (Jun 9, 2025):

Thanks for reporting. We'll be looking into it. In the meantime, you can opt out of the experimental scripting sandbox from Settings > Experiments.

<!-- gh-comment-id:2954897875 --> @jamesgeorge007 commented on GitHub (Jun 9, 2025): Thanks for reporting. We'll be looking into it. In the meantime, you can opt out of the experimental scripting sandbox from `Settings > Experiments`.
Author
Owner

@ChenLuoi commented on GitHub (Jun 10, 2025):

Thanks for reporting. We'll be looking into it. In the meantime, you can opt out of the experimental scripting sandbox from Settings > Experiments.

Thanks! Disable experimental scripting sandbox resolved it. Looking forward to a complete fix in the future.

<!-- gh-comment-id:2959358551 --> @ChenLuoi commented on GitHub (Jun 10, 2025): > Thanks for reporting. We'll be looking into it. In the meantime, you can opt out of the experimental scripting sandbox from `Settings > Experiments`. Thanks! Disable experimental scripting sandbox resolved it. Looking forward to a complete fix in the future.
Author
Owner

@jamesgeorge007 commented on GitHub (Jun 13, 2025):

Hi, we've identified the root cause. This will be addressed in the upcoming patch release.

<!-- gh-comment-id:2969148088 --> @jamesgeorge007 commented on GitHub (Jun 13, 2025): Hi, we've identified the root cause. This will be addressed in the upcoming patch release.
Author
Owner

@jamesgeorge007 commented on GitHub (Jun 15, 2025):

This is now resolved in v2025.5.2.

<!-- gh-comment-id:2973557147 --> @jamesgeorge007 commented on GitHub (Jun 15, 2025): This is now resolved in [v2025.5.2](https://github.com/hoppscotch/hoppscotch/releases/tag/2025.5.2).
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#1952
No description provided.