[GH-ISSUE #1426] Special Characters in JSON keys getting unescaped by Scripting tool #1420

Open
opened 2026-03-03 19:51:21 +03:00 by kerem · 2 comments
Owner

Originally created by @jerimiahwelch on GitHub (Nov 4, 2022).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1426

Originally assigned to: @NghiaTranUIT on GitHub.

Description

Steps to Reproduce

  1. Enable Scripting Tool with new, empty script
  2. Screenshot 2022-11-04 at 7 31 48 AM
  3. Go to this URL: https://www.bedbathandbeyond.com/amp/7865/specialCharInKey.json
  4. Observe that "72"-curtain_visual_filter_region" key has been changed to "72"-curtain_visual_filter_region"
  5. Screenshot 2022-11-04 at 7 23 40 AM

Current Behavior

{"72"-curtain_visual_filter_region":{"statusCode":404,"Response":"Error","ErrorMessage":"Incorrect JSON from CMS."}}

Expected Behavior

{
  "72\"-curtain_visual_filter_region": {
    "Response": "Error",
    "statusCode": 404,
    "ErrorMessage": "Incorrect JSON from CMS."
  }
}

Environment

  • App version: Version 3.11.0 (31100)
  • macOS version: 13.0 (22A380)
Originally created by @jerimiahwelch on GitHub (Nov 4, 2022). Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1426 Originally assigned to: @NghiaTranUIT on GitHub. ## Description <!--- Description for the bug? --> ## Steps to Reproduce <!-- Add relevant code and/or a live example --> 1. Enable Scripting Tool with new, empty script 2. <img width="1467" alt="Screenshot 2022-11-04 at 7 31 48 AM" src="https://user-images.githubusercontent.com/1224514/200000541-de7edd6b-8e74-4d61-b7ad-7e2519db0b54.png"> 3. Go to this URL: https://www.bedbathandbeyond.com/amp/7865/specialCharInKey.json 4. Observe that "72\"-curtain_visual_filter_region" key has been changed to "72"-curtain_visual_filter_region" 5. <img width="1680" alt="Screenshot 2022-11-04 at 7 23 40 AM" src="https://user-images.githubusercontent.com/1224514/199999269-8fd92485-99a2-4a69-93be-cc0ff1e82a48.png"> ## Current Behavior ```json {"72"-curtain_visual_filter_region":{"statusCode":404,"Response":"Error","ErrorMessage":"Incorrect JSON from CMS."}} ``` ## Expected Behavior ```json { "72\"-curtain_visual_filter_region": { "Response": "Error", "statusCode": 404, "ErrorMessage": "Incorrect JSON from CMS." } } ``` ## Environment - App version: Version 3.11.0 (31100) - macOS version: 13.0 (22A380)
Author
Owner

@NghiaTranUIT commented on GitHub (Nov 6, 2022):

Thanks for the detailed report. I'm investigating now 👍

<!-- gh-comment-id:1304768705 --> @NghiaTranUIT commented on GitHub (Nov 6, 2022): Thanks for the detailed report. I'm investigating now 👍
Author
Owner

@NghiaTranUIT commented on GitHub (Nov 7, 2022):

@jerimiahwelch it's fixed in this Beta build: https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_3.13.0_Fix_scripting_to_escape_key_string.dmg

The Scripting Tool will properly escape the key in the JSON 👍

Don't forget to enable the No Caching when reloading Google Chrome, otherwise, it might use the web-browser cached version.

Screen Shot 2022-11-07 at 15 38 32
<!-- gh-comment-id:1305264580 --> @NghiaTranUIT commented on GitHub (Nov 7, 2022): @jerimiahwelch it's fixed in this Beta build: https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_3.13.0_Fix_scripting_to_escape_key_string.dmg The Scripting Tool will properly escape the key in the JSON 👍 Don't forget to enable the No Caching when reloading Google Chrome, otherwise, it might use the web-browser cached version. <img width="1598" alt="Screen Shot 2022-11-07 at 15 38 32" src="https://user-images.githubusercontent.com/5878421/200263959-1fa0dc71-0434-4bd5-b0e8-3b8d06466f39.png">
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/Proxyman#1420
No description provided.