Difference between revisions of "Wendy's JSON"
From Coder Merlin
John-oroark (talk | contribs) |
Vyom-nemade (talk | contribs) (→JSON) |
||
Line 41: | Line 41: | ||
* [https://stackoverflow.com/questions/383692/what-is-json-and-what-is-it-used-for#:~:text=The%20JSON%20format%20is%20often,as%20an%20alternative%20to%20XML.&text=JSON%20is%20JavaScript%20Object%20Notation. (Stack Overflow)] | * [https://stackoverflow.com/questions/383692/what-is-json-and-what-is-it-used-for#:~:text=The%20JSON%20format%20is%20often,as%20an%20alternative%20to%20XML.&text=JSON%20is%20JavaScript%20Object%20Notation. (Stack Overflow)] | ||
* [https://www.learningcontainer.com/sample-json-file/ (Learning Container)] | * [https://www.learningcontainer.com/sample-json-file/ (Learning Container)] | ||
* [https://www.w3schools.com/js/js_json_intro.asp (w3schools)] |
Revision as of 10:51, 8 September 2021
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 }