Answer the question
In order to leave comments, you need to log in
Error getting json?
I request JSON data via Ajax, nothing special, everything works.
But this error pops up in the console:
What does this mean? JSON is absolutely correct, this is confirmed by:
- Code performance (everything is parsed normally) -
Online validator -
I myself
Just in case, here is the content of test.json:
{
"data" : [
{
"id" : 1,
"content" : "<p>Тестовый текст</p>",
"title" : "Тестовое название",
"rating" : 222,
"info" : {
"comments" : 42,
"views" : 448,
"spawnDate" : "12.12.2015"
},
"author" : {
"avatar" : "none.png",
"rating" : 23,
"name" : "Капитан аноним"
},
"tags" : [
"Тег1", "Тег2", "Тег3"
]
}
],
"status" : "OK",
"count" : 1
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question