mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-25 16:15:55 +03:00
[GH-ISSUE #1595] JSON long value become incorrect after scripting #1586
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#1586
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 @BryanSer on GitHub (Apr 10, 2023).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1595
Originally assigned to: @NghiaTranUIT on GitHub.
Description
JSON long value become incorrect after scripting



user_id_str is string type value for user_id. After script, the number value become incorrect.
Expected user_id is equals user_id_str
the only one script is enabled.
Steps to Reproduce
Environment
@NghiaTranUIT commented on GitHub (Apr 10, 2023):
Thanks. This feature is really difficult to fix because it's how Swift and JavascriptCore work. They could not properly handle the big Int or Big Float.
If you don't mind, you can use the Map Local, which allows you modify the Response as you mentioned 👍
@BryanSer commented on GitHub (Apr 10, 2023):
Okey, but in some case, i need script.
will this feature be fixed in the future
@BryanSer commented on GitHub (Apr 10, 2023):
Maybe we can try to provide another scripting language to fix this issue?
@NghiaTranUIT commented on GitHub (Apr 10, 2023):
I will investigate in the next release 👍
@BryanSer commented on GitHub (May 26, 2023):
Hello, I saw that version 4.8.0 has been released. I was wondering if the issue has been fixed by now.
@NghiaTranUIT commented on GitHub (May 29, 2023):
Sorry, it isn't fixed yet : /
@BryanSer commented on GitHub (Jul 18, 2023):
Hello, has this issue been fixed?
@NghiaTranUIT commented on GitHub (Jul 18, 2023):
Sorry, I could not find any solution because it's from deep inside Apple Framework (JavascriptCore) : /
@BryanSer commented on GitHub (Jul 18, 2023):
maybe can provide another script language to avoid the issue?
Such as kotlin script, python?
@jefferyfan commented on GitHub (Nov 12, 2025):
I’m also encountering the same issue.
Has this been fixed in the latest version, or is there any update on it?
@NghiaTranUIT commented on GitHub (Nov 12, 2025):
@jefferyfan it's still an known issue because it's the limitation of the Swift and JavaScriptCore when storing a big number.
To workaround, you can use this code to directly map to your local file. Proxyman won't parse the big number, so it will work
Ref: https://docs.proxyman.com/scripting/snippet-code#map-a-local-file-to-responses-body-like-map-local-tool-proxyman-2.25.0