Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

JSON/Data types

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

Quick Review JSON is a notation language that stores data. An example is storing playerData. Data Types Integers are easy to make. Just put the integer! 2, 10, 5 Strings are in double quotes "Hello, World!" Booleans are either true or false true Arrays Arrays are pretty much lists of data. [1, 3, 10, 15] ["Hello","Goodbye","World"] To get data from an array do this array = ["Hello","World"] string0 = array[0] // array[0] = "Hello" string1 = array[1] // array[1] = "World" string2 = string0 + " " + string1 // Hello World Objects And the best part! Objects, Objects are the core of JSON You can't have json without objects! To make a object just add curly brackets and (i can't come up with something, ill just show it in code) { "MyName": "Streamer", "MyPassword": "catinabowl" }