Bird
0
0

Select the valid JSON response envelope representing a successful operation with user data:

easy📝 Syntax Q3 of 15
Rest API - Request and Response Format
Select the valid JSON response envelope representing a successful operation with user data:
A{"status": "success", "data": {"user": "John"}}
B{"status": success, "data": {"user": "John"}}
C{"status": "success", "data": "user": "John"}
D{"status": "success", data: {"user": "John"}}
Step-by-Step Solution
Solution:
  1. Step 1: Check JSON syntax

    Keys and string values must be in double quotes.
  2. Step 2: Validate structure

    {"status": "success", "data": {"user": "John"}} correctly uses quotes and braces.
  3. Final Answer:

    {"status": "success", "data": {"user": "John"}} -> Option A
  4. Quick Check:

    Proper quotes and braces used [OK]
Quick Trick: Valid JSON requires quoted keys and string values [OK]
Common Mistakes:
  • Omitting quotes around string values
  • Using unquoted keys
  • Incorrect nesting of objects

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes