Loading a json using Vega

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):

Describe the issue:

I have a snippet of a script in Vega that calls a json file:

“data”: [
{
“name”: “node data”,
“url”: “data/diagram.json”,
“format”: {“type”: “json”, “property”: “us”}
},
{
“name”: “link data”,
“url”: “data/diagram.json”,
“format”: {“type”: “json”, “property”: “links”}
}
],

However it shows this error: Loading failed
data/diagram.json

Configuration:

Relevant Logs or Screenshots:

Any help?