← Quiz: Testing Spring Boot: all 10 questions
Quiz: Testing Spring Boot · Question 9 of 10
What does JsonCompareMode.STRICT add to a JSON comparison?
What does JsonCompareMode.STRICT add to a JSON comparison?
- A.It ignores field order and extra fields
- B.It fails on any extra or missing field
- C.It compares only the status code
- D.It formats the JSON
Answer & explanation
Correct answer: It fails on any extra or missing field
Strict mode catches accidental new fields leaking into the response.
Can you get the rest right without peeking?
Take the timed Quiz: Testing Spring Boot quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →