How to show nested json data in the listGrid

hello everyone,I have the json data format like :

{
path: [
{
id: -46,
name: “xxx”,
displayName: “xxx”
}
],
isGroupManager: false,
parentId: -46,
recyclerId: 69698,
totalCount: 52,
resources: [
{
id: 722,
groupId: 46,
groupName: “xxxxx”,
memberId: 210,
owner: false,
name: “chouti.png”,
displayName: “chouti.png”,
desc: “”,
filePath: “1286875500680.png”,
size: 0,
rate: 1,
contentType: “application/octet-stream”,
creationDate: “2010-10-12 17:25:00”,
parentId: 0,
type: 2,
leaf: true
},
dirAmout: 0,
fileAmout: 10
}

and there’re my codes :

    DataSource dataSource = new DataSource();   
    dataSource.setDataFormat(DSDataFormat.JSON);  
    dataSource.setDataURL("/group/getResources.action?parentId=-46&type=all&start=10&limit=10");
    dataSource.setRecordXPath("resources");
    
    DataSourceTextField displayName = new DataSourceTextField("displayName", "name");
    displayName.setValueXPath("resources/displayName");

    dataSource.setRecordXPath("path");
    DataSourceTextField path = new DataSourceTextField("id","path");
    path.setValueXPath("path/id");
    
    dataSource.setFields(displayName, path);

as my codes,I only can show one record in the listgrid,but I want to show records in path/id and recoures/display at the same time,how can I do? Thank you!

What about

displayName.setValueXPath(“//resources/displayName”);

?