I have a function, who works fine, but when success i get data, and this data is an array.
success: function(data) {
console.log(data);
}
this data return :
{"idResultat":172825,"idClientCat":1,"idClientLegende":"Tiers L\u00e9gitime","couleurCat":"#0062bd","couleurText":"#FFF"}
But when i try to get for example 'couleurCat', i have undefined. I have try like this :
data['couleurCat']
data.couleurCat
but always undefined
typeofreturn fordata?datais a string, convert it to an object before retrieving.