Wendy's JSON
From Coder Merlin
Revision as of 10:53, 8 September 2021 by Kian-durrett (talk | contribs)
Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder
JSON[edit]
Summary[edit]
JSON, otherwise known as JavaScript Object Notation, is a structure used to store and describe multiple objects. Although it was originally used in JavaScript, JSON is language-independent and can be used in nearly any application. JSON is also a lightweight data-interchange format and can be used to send data between computers.
Usage[edit]
- In short, JSON is used to transmit data between web applications.
- For example, sending data from the server to the client.
- For instance, having the server tell and transmit data to the client to display a picture.
- In addition, substitutable with XML.
Example Structure[edit]
{ "firstName": "John", "lastName": "Williams", "gender": "male", "age": 24, "address": { "streetAddress": "126", "city": "San Jone", "state": "CA", "postalCode": "394221" }, "phoneNumbers": [ { "type": "home", "number": "7383627627" } ] }
Board[edit]
{ "Board": Board "Rows" : 9 "Columns": 9 "Grids": 9 "Tiles": 81 }