Bird
0
0

Given this JSON response from a bulk export:

medium📝 Predict Output Q4 of 15
Rest API - Batch and Bulk Operations
Given this JSON response from a bulk export:
{"items": [{"id":1,"name":"Pen"},{"id":2,"name":"Pencil"}]}

What will be the value of the second item's name?
APencil
BPaper
CEraser
DPen
Step-by-Step Solution
Solution:
  1. Step 1: Locate the second item in the JSON array

    The array "items" has two objects; the second has "id":2 and "name":"Pencil".
  2. Step 2: Extract the name value

    The second item's name is "Pencil".
  3. Final Answer:

    Pencil -> Option A
  4. Quick Check:

    Second item name = Pencil [OK]
Quick Trick: JSON arrays start at index 0; second item is index 1 [OK]
Common Mistakes:
MISTAKES
  • Choosing first item's name
  • Confusing item order
  • Picking unrelated names

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes