I tried several times to echo a JSON object, with explode() function, but I did not succeed. I think I'm using a wrong method, but I can not find another way to do it.
I want to echo a JSON like:
{
"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
...
}
As:
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 ...