JSON (JavaScript Object Notation)

JSON is human-readable text used to transmit data objects consisting of attribute–value pairs. It’s often used to transmit data between a server and web applications.

Python Example

This website can be used to validate JSON syntax: https://jsonlint.com/

# Define a JSON object.
json_object = {
  "firstName": "John",
  "lastName": "Smith",
  "age": 27,
  "address": {
    "streetAddress": "21 2nd Street",
    "city": "New York",
    "state": "NY",
    "postalCode": "10021-3100"
  }
}
  
# Access JSON object contents.
print(json_object["lastName"]