Q:

AJAX isn't treating json as json

My AJAX call isn't treating the data from server as JSON, even if i set the datatype in json:
function Getmateriasfromserver(callback){
    var status_aux;
//Requisição HTTP, por dados provindos do url dado. Caso os dados recebidos sejam os esperados, entra no caso do SUCCESS
return $.ajax({
    url: 'materiasphp/materias.php',
dateType: 'json',
    success: function(data)
    {
        status_aux = data;
        callback(status_aux);
    var test = JSON.stringify(data);
    console.log(data);
    console.log(test[1]);
    }

Console print test[1] = "["

A:

var test = JSON.stringify(data);

Should probably be 
var test = JSON.parse(data);
// or just 
var test = data;

Because if you stringify it, then you are accessing letters in the string with bracket notation.
var test="cat":
console.log(test[0]);

Is c, the first letter in the string

