Website Terminology Glossary
JSON
JSON (JavaScript Object Notation) is a lightweight data interchange format that is easy for humans to read and write, and easy for machines to parse and generate. It is a text-based format that is used for transmitting data between a client and a server over a network.
JSON is based on a subset of the JavaScript programming language and is often used to transfer data between web applications and servers. It is similar to XML, but is generally considered to be simpler and more concise.
JSON data is represented using key-value pairs, similar to a dictionary. Each key-value pair is separated by a colon, and each pair is separated by a comma. The entire data structure is enclosed in curly braces.
Here is an example of a JSON
object:{
"firstName": "John",
"lastName": "Doe",
"age": 30,
"address": {
"streetAddress": "123 Main St.",
"city": "Anytown",
"state": "CA",
"postalCode": "12345"
},
"phoneNumbers": [
{
"type": "home",
"number": "555-555-1234"
},
{
"type": "work",
"number": "555-555-5678"
}
]
}
In this example, the JSON object contains information about a person, including their first name, last name, age, address, and phone numbers. The address is represented as another JSON object, and the phone numbers are represented as an array of JSON objects.
Need Help With JSON ?
