add handler returning directory content as json array