读取json文件之后如何解析

我的json文件如下:
{
“animals”: {
“dog”: [
{
“name”: “Rufus”,
“age”:15
},
{
“name”: “Marty”,
“age”: null
}
]
}
}

通过
cc.loader.loadRes(“dizigui”, cc.Asset,(err, res) =>{
cc.log(res);

})

已经陈功读取到数据对象
但获取的时候
cc.log(res.animals)
一直为undefined

JSON.parse(res);

res类型改成 cc.JsonAsset
直接 this.sth = res.json;
取的时候就可以直接 this.sth.animals