adding list of objects as a JSON filetype