2 ms·
"(a novel, an article, a manual, etc.)" So something meant to be read by humans. XML is nice for marking up the actual text with structure like chapters, sect
by jimbokun 10y ago
"(a novel, an article, a manual, etc.)"
So something meant to be read by humans. XML is nice for marking up the actual text with structure like chapters, sections, footnotes, references, formatting, etc. (thus, the ML in XML comes from "markup language")
With JSON, there isn't really a notion of prose text to "mark up". It is structured data meant to be processed by machines.
(Of course it is useful for humans to read and write JSON sometimes, but JSON is primarily meant to be input to or output from some computing process. You wouldn't sit down to read a JSON doucment unless you are some super weird programmer dude.)