Not exactly. JSON is a container of data, just like XML. It is not a executable script.
JSON is much easier to write, parse and generally work with, than XML.
Code:
{
"id": "pioSko",
"sex": "Yes, please",
"decals": [
{
"data": "<svg>etc etc</svg>",
"x": 100,
"y": 100,
"rotation": 24
},
{
"data": "<svg>etc etc</svg>",
"x": 200,
"y": 300,
"rotation": 0
}
]
}
So, aboveJson.decals[0].x = 100 ...
Almost all new websites use some form of JSON nowadays...
Gran Turismo website for example:
https://www.gran-turismo.com/gb/gtsport/module/community/localize/