ProxymanApp / Proxyman

Modern. Native. Delightful Web Debugging Proxy for macOS, iOS, and Android ⚡️
https://proxyman.io
5.35k stars 177 forks source link

[Filter][Response Body] Search "Prettified" JSON, Not Just Raw #2007

Open mylesbarros opened 2 months ago

mylesbarros commented 2 months ago

Description

When filtering requests using the Response Body filter the filter only matches against the RAW response. It would be nice to either search both or to add an additional filter criteria to differentiate between prettified and RAW.

Repro Steps for Current Behavior

  1. Load the following page in a browser... https://api.artic.edu/api/v1/artworks/search?q=cats

  2. The response body begins with a pagination object whose first property is "total":7432.

  3. The response in the Response's Body pane will appear as follows:

    Screenshot 2024-04-25 at 10 54 34
  4. If a filter is added such that Response Body Not Contains total": 7432 the response will still be included in the results as it is matching against the RAW response body, which is total":7432

Why this feature/change is important?

This causes confusion at least for me as it will not match against the content of the Response pane's Body tab. In my case I bought Proxyman to filter out all responses where a specific property was null. I believed it didn't work and was about to request a refund until I realized that the filters appeared not to match any property in the response body at all, which made me realize that the actual RAW response had whitespace stripped.

NghiaTranUIT commented 2 months ago

Thanks, let me fix it 👍

NghiaTranUIT commented 2 months ago

@mylesbarros you can try this Beta build: https://download.proxyman.io/beta/Proxyman_5.2.0_Fix_Filter_with_Body.dmg

Changelog