

I tried that before but the problem is on the hadithsection table there are many row which have the same book id like a tree. Example Book is the main tree and sections are the branches.
I need to output the JSON as nested like several sections are belongs to one book ID
