I’m trying to figure out whats wrong with the following json data, i’m currently using http://jsonlint.com/ to validate it which keeps failing with;
Parse error on line 9:
... "Question 2" : [
-----------------------^
Expecting 'EOF', '}', ',', ']'
My code;
{ "questions" : {
"Question 1" : [
{ "Q" :"Question" },
{ "A" : "Answer A" },
{ "B" : "Answer B" },
{ "C" : "Answer C" },
{ "D" : "Answer D" },
{ "Answer" : "C" }
]
"Question 2" : [
{ "Q" :"Question" },
{ "A" : "Answer A" },
{ "B" : "Answer B" },
{ "C" : "Answer C" },
{ "D" : "Answer D" },
{ "Answer" : "C" }
]
}
}";
You’ve forgot a comma!