Start of the directory.json builder. moohaha