Mock POST request with JSON payload

Hi all, is there any way to mock a POST request with a JSON payload? Right it seems that the Advanced Mock feature doesn’t seem to accommodate sending JSON to the request…let alone large JSON payloads

Hello, I tried it and Advanced Mock works correctly. My steps are as follows:

It would be helpful if you could provide your steps and screenshots.

These first 3 screenshots mimic the settings that you have in your screenshots






Yet when I run the mock I get a blank object instead of the success object for a response


and the special characters and character escapes are supposed to be part of my payload

Hello, this is because there is a Backslash like (\n) in the mock rule. So that the request value needs to include an (\) to match the mock rule correctly. You can click on the ‘Request’ button next to the rule to view the request that matchs the rule.




Is the only difference between this payload and the payload I had the extra \ in front of the \n?

“\n” is a special symbol, and we will look into the issue.