mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-25 16:15:55 +03:00
[GH-ISSUE #1024] Scripts that assign the JSON response.body to true fail #1019
Labels
No labels
Discussion
Feature request
In Progress...
Plugins
Waiting response
Windows
Windows
bug
duplicate
enhancement
feature
good first issue
iOS
macOS 10.11
question
wontfix
✅ Done
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Proxyman#1019
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 @BenTilbrook on GitHub (Oct 12, 2021).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1024
Originally assigned to: @NghiaTranUIT on GitHub.
Scripts that assign the
response.bodytotruefail with an error (see below for error details).If I wrap the
trueliteral in a JSON object, it works. However,trueis valid JSON, and many JSON APIs return only boolean literals.Here's the full script I'm using:
Proxyman version
2.33.0 (23300)macOS Version
11.6 (20G165)Steps to reproduce
Expected behavior
The response body is
trueActual behavior
An error is reported:
@NghiaTranUIT commented on GitHub (Oct 12, 2021):
I wasn't aware that true/false could be a valid JSON object 🙀
I'm fixing it and send you a beta build soon 👍
@NghiaTranUIT commented on GitHub (Oct 12, 2021):
Hey @BenTilbrook please try this beta buid: https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_2.33.0_Fix_Primitive_JSON_Scripting.dmg
You can use primitive json 👍
@BenTilbrook commented on GitHub (Oct 14, 2021):
@NghiaTranUIT I can confirm this fixes the problem. Thanks for the super quick response!
@thientan21 commented on GitHub (Oct 26, 2021):
@BenTilbrook @NghiaTranUIT you guys are absolutely amazing 😊