test the directory listing JSON encoder