Ajax "error" property case-sensitive?

Ajax "error" property case-sensitive?

JaredGJaredG Posts: 1Questions: 1Answers: 0

I'm finding that the Ajax "error" property (as described in https://editor.datatables.net/manual/server) is case-sensitive. If it's capitalized, Editor doesn't appear to "see it."

Is this intentional?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 62,338Questions: 1Answers: 10,228 Site admin
    Answer ✓

    Yes. Javascript and JSON are both case sensitive - e.g. you can have:

    {
      "error": 1,
      "Error": 2
    }
    

    and the object would have two properties, not one.

    Allan

This discussion has been closed.