Bird
0
0

Given this JSON response from a REST API:

medium📝 Predict Output Q13 of 15
Rest API - Request and Response Format
Given this JSON response from a REST API:
{"status": "success", "data": [10, 20, 30]}

What is the value of the key "data"?
A"success"
B[10, 20, 30]
C10
D{"status": "success"}
Step-by-Step Solution
Solution:
  1. Step 1: Identify the key "data" in JSON

    The key "data" holds an array with values 10, 20, and 30.
  2. Step 2: Match the value to the options

    [10, 20, 30] correctly shows the array [10, 20, 30].
  3. Final Answer:

    [10, 20, 30] -> Option B
  4. Quick Check:

    Key "data" = array [10, 20, 30] [OK]
Quick Trick: Look for the key and read its value exactly as shown [OK]
Common Mistakes:
  • Confusing key "status" value with "data"
  • Picking a single number instead of the array
  • Choosing the whole JSON object as value

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes