Sample model A
{"status":"approved"} - Is the entire response a single JSON object?Met
- Is the status value "pending"?Not met
Check both the format and the value before handing a response to another program.
{"status":"approved"} The order status is below.
{"status":"pending"} {"status":"pending"} Even with the right value, leading prose keeps a program from parsing the full response as JSON. Check the two requirements separately.