I am working with 3 specific files:
- index.html
- js/main.js
- json.json
The file named "json.json" contains the following code snippet:
data = '[
{"name":"John","guests":3,"status":"true"},
{"name":"Mike","guests":5,"status":"false"},
{"name":"Jenny","guests":2,"status":"false"}
]';
However, I am encountering an error message that says:
"Expected a JSON object, array or literal"
I would greatly appreciate any assistance in resolving this issue. Thank you!