Bird
0
0

Consider this response envelope:

medium📝 Predict Output Q5 of 15
Rest API - Request and Response Format
Consider this response envelope:
{"status": "success", "message": "", "data": {"name": "Alice"}}

What is the value of the data field?
A""
B{"name": "Alice"}
Cnull
D"Alice"
Step-by-Step Solution
Solution:
  1. Step 1: Locate the data field in the JSON

    The data field contains an object with a key 'name' and value 'Alice'.
  2. Step 2: Identify the exact value

    The value is a JSON object: {"name": "Alice"}.
  3. Final Answer:

    {"name": "Alice"} -> Option B
  4. Quick Check:

    Data field value = JSON object [OK]
Quick Trick: Data field holds the main response content [OK]
Common Mistakes:
MISTAKES
  • Confusing data with message
  • Assuming data is string or null

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes