Bird
0
0

Identify the error in this response envelope JSON:

medium📝 Debug Q6 of 15
Rest API - Request and Response Format
Identify the error in this response envelope JSON:
{"status": "success", "message": "OK", "data": [1, 2, 3]
AMissing closing brace '}' at the end
BIncorrect status value
CData field should be a string
DMessage field cannot be 'OK'
Step-by-Step Solution
Solution:
  1. Step 1: Check JSON syntax

    The JSON is missing the closing brace '}' at the end.
  2. Step 2: Confirm other fields are valid

    Status is 'success', message is 'OK', and data is an array, all valid.
  3. Final Answer:

    Missing closing brace '}' at the end -> Option A
  4. Quick Check:

    JSON syntax error = missing brace [OK]
Quick Trick: Always check for matching braces in JSON [OK]
Common Mistakes:
  • Ignoring missing braces
  • Thinking data must be string
  • Misreading status or message

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes