I solve it with a custom fucntion recursive in front :
private dataIsShit(object: any) {
if(object === null) {
return null;
}
if (object.data) {
object = object.data;
}
if (Object.prototype.toString.call(object) === '[object Array]') {
object.forEach((r: any) => {
r = this.dataIsShit(r);
});
} else if (typeof object === 'object') {
for (const property in object) {
object[property] = this.dataIsShit(object[property]);
}
}
return object;
}