Bird
0
0

Find the issue in this error response format:

medium📝 Debug Q7 of 15
Rest API - Request and Response Format
Find the issue in this error response format:
{"error": {"code": "404", "message": "Not Found", "details": null,}}
ACode should be a number, not a string
BTrailing comma after null value
CMissing closing brace
DMessage value should be null
Step-by-Step Solution
Solution:
  1. Step 1: Check JSON syntax

    Trailing commas after the last item in an object are invalid in JSON.
  2. Step 2: Validate other parts

    Code as string is allowed, closing braces are present, message is correct.
  3. Final Answer:

    Trailing comma after null value -> Option B
  4. Quick Check:

    No trailing commas allowed in JSON objects [OK]
Quick Trick: Avoid trailing commas in JSON objects [OK]
Common Mistakes:
MISTAKES
  • Leaving trailing commas
  • Confusing string and number types
  • Missing braces

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes