API Formats Flashcards
1
Q
JSON
A
JSON (JavaScript Object Notation) is a lightweight, text-based format used to transmit data objects consisting of key-value pairs.
Example - A weather API might return data in JSON format, like {“temperature”: 22, “humidity”: 60}.
2
Q
XML
A
XML (eXtensible Markup Language) is a markup language used to store and transport data in a hierarchical structure with custom tags.
Example - A book information API might return data in XML format, like <book><title>Book Title</title><author>Author Name</author></book>.