send files as json