finish test scan root function. use json dictionary to present files and folders structure