ProxymanApp / ProxymanApp/Proxyman

JSON float number values become incorrect after scripting

Open
#1,258 4 comments 0 reactions 1 assignee View on GitHub

@NghiaTranUIT is already working on this.

Since Jun 21, 2022.

✅ Done bug
Dominant language
No language data
Stars
7k
Forks
237
PR merge metrics
No merged PRs in 30d

Description

Version 3.5.2 (30520)

macOS12.4 (21F79)

  1. Apply request scripting for any json request (for example add new header parameter)
  2. After scripting number values in request sometimes become broken (for example double value "somevalue":0.050 become "somevalue":0.050000000000000003)

Expected:After script apply values should stay the same as it was before, seems like after serialising this floats to js object and back they become broken.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.