Grokking System Design Fundamentals: Course for Beginners
Vote

0% completed

​

XML vs. JSON

When two systems exchange data, they have to agree on how that data is written down. Two text formats are the most common: one wraps every value in named tags (XML), and one writes values as key-value pairs (JSON).

Both can be read by people and parsed by machines. They differ in how large they are, what they can describe, and where you will actually meet them.

XML

XML stands for eXtensible Markup Language. It describes data as a tree of elements, where every element has an opening tag, a closing tag, and optional attributes.

<person> <name>John Doe</name>

.....

.....

.....

Like the course? Get enrolled and start learning!
Mudassar Ali

Mudassar Ali

· 2 years ago

Can also include protobuf format and communication protocol

By protocol i mean grpc, webrtc, http2, quic

Reading Progress

0%


Vote for new content