Which statement about JSON vs XML is true?

Prepare for the TJR Bootcamp Test with quizzes and flashcards. Each question includes hints and explanations to boost your readiness for the exam!

Multiple Choice

Which statement about JSON vs XML is true?

XML tends to be verbose because every piece of data is wrapped in opening and closing tags, which adds a lot of text. It also supports schemas (like XML Schema or DTD) to define the structure and data types, and namespaces to prevent element name collisions when combining vocabularies. JSON, by contrast, is designed for compact data interchange and represents data as nested objects and arrays, without built-in schemas or namespaces in the core specification (though external specifications like JSON Schema exist). That combination makes the statement about XML being verbose and supporting schemas and namespaces the accurate one. The other options misstate JSON’s verbosity and capabilities, or incorrectly claim XML is lighter than JSON, or that JSON cannot represent hierarchical data.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy