Difference between revisions of "Wendy's JSON"

From Coder Merlin
 
(14 intermediate revisions by 4 users not shown)
Line 1: Line 1:
= JSON =
= JSON =
 
[[File:JSON image.png|thumb|JSON example]]
== Summary ==
== Summary ==
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. Objects are stored using keys and values.


== Usage ==
== Usage ==
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 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 ==
 
{
    "firstName": "John",
    "lastName": "Williams",
    "gender": "male",
    "age": 24,
    "address": {
        "streetAddress": "126",
        "city": "San Jone",
        "state": "CA",
        "postalCode": "394221"
    },
    "phoneNumbers": [
        { "type": "home", "number": "7383627627" }
    ]
}
=== Board ===
=== Board ===


Line 15: Line 38:
  }
  }


=== Rows ===
== Sources ==
 
* [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.w3schools.com/js/js_json_intro.asp (w3schools)]
 
}

Latest revision as of 10:57, 8 September 2021

Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder

JSON[edit]

JSON example

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. Objects are stored using keys and values.

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
}

Sources[edit]