Implemented a recursive query for dirs as well as the json to deseralize that