JSON
- JSON (JavaScript object notation) is a serialized (saved as a string, not as memory) Javascript object that can be saved in / retrieved from
.json
files by your program.
- Just like objects, you can store any* type in a JSON file, including arrays and other objects.
[
{ "color":"red", "rgb": [255,0,0] },
{ "color":"orange", "rgb": [255,165,0] },
{ "color":"yellow", "rgb": [255,255,0] },
{ "color":"green", "rgb": [0,255,0] },
{ "color":"blue", "rgb": [0,0,255] },
{ "color":"indigo", "rgb": [75,0,130] },
{ "color":"violet", "rgb": [238,130,238] },
]
*Any type except methods