add JSON-powered directory