我有以下json文件,如何表示文件列表和文档,当我按下文档时它会显示文件里面的文件?
{
"d_type":"directory",
"name":".",
"size":1020,
"subdirectory":[
{
"d_type":"file",
"name":".DS_Store",
"size":15364
},
{
"d_type":"directory",
"name":"simplejson-3.6.5",
"size":578,
"subdirectory":[
{
"d_type":"file",
"name":".DS_Store",
"size":12292
},
{
"d_type":"directory",
"name":"build",
"size":170,
"subdirectory":[
{
"d_type":"directory",
"name":"bdist.macosx-10.9-intel",
"size":68,
"subdirectory":[
]
},
{
"d_type":"directory",
"name":"lib.macosx-10.9-intel-2.7",
"size":102,
"subdirectory":[
{
"d_type":"directory",
"name":"simplejson",
"size":374,
"subdirectory":[
{
"d_type":"file",
"name":"init.py",
"size":23137
},
{
"d_type":"directory",
"name":"tests",
"size":986,
"subdirectory":[
{
"d_type":"file",
"name":"test_unicode.py",
"size":6996
}
]
}
]
}
]
},
{
"d_type":"directory",
"name":"temp.macosx-10.9-intel-2.7",
"size":102,
"subdirectory":[
{
"d_type":"directory",
"name":"simplejson",
"size":102,
"subdirectory":[
{
"d_type":"file",
"name":"_speedups.o",
"size":268464
}
]
}
]
}
]
}
]
}
]
}