$.ajax({
url: "php/data.php",
type: 'POST',
data: {act: 'load', user: self.user_id},
success: function (data) {
c(data)
var data = JSON.parse(data);
c(data)
self.loader = false;
self.cols = data;
},
error: function (jqXHR, textStatus, errorThrown) {
alert(errorThrown);
}
});
получаю
[{"cn":"serial","dt":"varchar","c":""},{"cn":"series","dt":"int","c":""},{"cn":"season","dt":"int","c":""},{"cn":"url","dt":"varchar","c":""}]
admin.js?1.0:2
(4) [Object, Object, Object, Object]
0:Object
c
cn:"serial"
dt:"int"
т.е. varchar каким то образом стал int