我尝试了几次使用explode() 函数来回显一个JSON 对象,但我没有成功。我想我使用了错误的方法,但我找不到另一种方法。
我想回显一个 JSON,如:
{
"Title_Book": "Harry Potter",
"Volume": [
{
"Name": "Harry Potter and the Philosopher's Stone",
"Actor": [
{
"Actor": "Actor0"
},
{
"Actor": "Actor1"
}
]
},
{
"Name": "Harry Potter and the Chamber of Secrets",
"Actor": [
{
"Actor": "Actor0"
}
]
}
]
},
{
"Title_Book" : Another Book
...
}
作为:
Title : Book Volume[0][0] : Name of the book : Harry Potter and the Philosopher's Stone Volume[0][1] : Actor 1 Volume[0][2] : Actor 1 Volume[1][0] : Name of the book : Harry Potter and the Chamber of Secrets Volume[1][1] : Actor 0 Title1 ...