What is the difference between JSON and XML?
JSON (JavaScript Object Notation) is a lightweight data format that uses key-value pairs and is easy to read for both humans and machines. XML (eXtensible Markup Language) is a markup language that uses tags to define data structure. JSON is typically more compact and easier to parse, while XML supports attributes, namespaces, and is more expressive for complex documents.