I’m experimenting with d3 and trying now to read data from a json-file.
What I currently want to save in the json file are the words of a text with x- and y-coordinates where the words shall be written on the output .html-file.
Could you please tell me if this chosen json syntax approach is correct?
{"text": [
{
"Word": "Hi",
"X": 300,
"Y": 400,
}
{
"Word": "Hello",
"X": 500,
"Y": 100,
}
]}
Thanks a lot for your answers.
No, it’s not valid.
This is valid JSON:
You can use JSONLint to validate your JSON.