E
E
Extramezz2015-10-25 18:49:28
JavaScript
Extramezz, 2015-10-25 18:49:28

Error getting json?

I request JSON data via Ajax, nothing special, everything works.
But this error pops up in the console:
efba7a78b3c8473fb13e2e6b278e6117.PNG
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

2 answer(s)
M
Mark Doe, 2015-10-25
@mourr

Is the encoding of test.json okay?

I
Ivanq, 2015-10-25
@Ivanq

In fact, for Firefox, such an error is incorrect. It will not give such an error. See how your JSON is unpacked.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question