Skip to content
CodeKruPro

JSON versus XML in API responses

QuizEasyAsked in: Wipro

Which statements about JSON and XML are true? Choose all that apply.

  • JSON has built-in value types such as numbers, true/false and null; in XML all element content is text unless a schema (a file that describes the allowed structure) says otherwise
  • SOAP services use XML messages
  • Both can be validated against a schema (JSON Schema for JSON, XSD for XML)
  • REST APIs are not allowed to return XML

This question is part of Pro+

Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.

See Pro+

Already have Pro+? Sign in