Bird
0
0

Which feature of JSON makes it more suitable than XML for data interchange in REST APIs?

easy📝 Conceptual Q1 of 15
Rest API - Request and Response Format
Which feature of JSON makes it more suitable than XML for data interchange in REST APIs?
AIts lightweight and easy-to-read structure
BSupports complex schemas natively
CAllows embedded executable code
DRequires less bandwidth due to binary encoding
Step-by-Step Solution
Solution:
  1. Step 1: Understand JSON and XML formats

    JSON is a lightweight data-interchange format, whereas XML is more verbose.
  2. Step 2: Compare readability and size

    JSON's syntax is simpler and easier to read, making it faster to parse and transmit.
  3. Final Answer:

    Its lightweight and easy-to-read structure -> Option A
  4. Quick Check:

    JSON is simpler and smaller than XML [OK]
Quick Trick: JSON is lightweight and human-readable [OK]
Common Mistakes:
MISTAKES
  • Assuming JSON supports executable code
  • Thinking JSON uses binary encoding
  • Believing XML is always smaller

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes