API Testing · Junior · Question 41 of 75
What is a JSON Schema used for in API testing?
- 1Converting JSON into XML for older clients
- 2Making JSON responses smaller and faster to send
- 3Describing and checking the structure and types of JSON
Show the answer
Correct answer: Describing and checking the structure and types of JSON
Explanation
A schema states required fields, types and formats. Validating responses against it catches missing or renamed fields quickly.