Implement querying the directory structure using JSON.