Bird
0
0

Find the mistake in this example response:

medium📝 Debug Q7 of 15
Rest API - API Documentation

Find the mistake in this example response:

{
  "userId": 10,
  "username": "jane_doe",
  "isActive": "false"
}
AMissing commas between fields
B"userId" should be a string, not a number
C"username" should be a number, not a string
D"isActive" should be a boolean, not a string
Step-by-Step Solution
Solution:
  1. Step 1: Check data types in JSON response

    Boolean fields should be true/false without quotes, not strings.
  2. Step 2: Verify other fields

    userId as number and username as string are correct; commas are present.
  3. Final Answer:

    "isActive" should be a boolean, not a string -> Option D
  4. Quick Check:

    Boolean values are unquoted true/false [OK]
Quick Trick: Boolean values in JSON are unquoted true/false [OK]
Common Mistakes:
MISTAKES
  • Putting boolean values in quotes
  • Thinking IDs must be strings
  • Missing commas in JSON
  • Confusing string and number types

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes