Paragraph structure is a writing style, not a coding outline.
Tree
An XML document can be depicted as a tree structure where there is a top element, and other tags are drawn as children of their parent elements.
Stem and Leaf
Stem and Leaf is a plot used to display quantitative data, where each data value is split into a "leaf" (usually the last digit) and a "stem" (the other digits).
Nested
While the structure of XML is inherently nested, it follows a tree structure.
The JSON format was inspired by the object and array format used in the JavaScript language, but was influenced and looks nearly identical to Python lists and dictionaries.
JavaScript
JSON is text, written with JavaScript object notation, but the format is nearly identical to one of the other options.
XML nodes
JSON and XML are used for similar purposes, but JSON is written with simpler structures.
Python lists and dictionaries
Pythonโs syntax for dictionaries and lists influenced the syntax of JSON. So the format of JSON is nearly identical to a combination of Python lists and dictionaries
JSON is simpler and more directly maps to native data structures we already have in programming languages, the parsing and data extraction code is usually simpler and more direct when using JSON.
JSON
XML is more self descriptive than JSON, but does not have the simpler and more direct mapping that JSON has.