Postman Smoke Test for Reporting Malformed JSON ResponsesPostman Smoke Test for Reporting Malformed JSON Responses
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
Keep a broken JSON response visible in your Postman report.
In my synthetic GET API demo, I changed one validation response body to just {. HTTP 400 and Content-Type: application/json stayed unchanged.
The collection catches pm.response.json() errors and checks the captured error in a named assertion. It then checks the exact expected error body. This keeps later checks running and retains the raw response for diagnosis. An empty-object fallback only lets the script continue; the parse assertion must still fail.
Newman’s result for that control: • 10 requests completed. • 58 of 60 assertions passed. • 2 assertions failed: JSON parsing and exact error body. • 0 script errors; exit 1.
Those two failures describe one deliberately malformed response. A script error should also fail a correctly configured run. Catching it here improves the evidence, not the pass rate.
One reporting trap: the overall demo harness succeeds when its deliberately broken controls fail as expected. Read each control’s Newman output before calling an API healthy.
For your own collection, agree the error-body contract, add one malformed-response control, and verify that parsing failures appear in the report without hiding later checks. This sample covers local functional GET checks through Newman, not Postman desktop GUI, authentication, security or load testing.
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started