Creating JSON object of all the files

There's room for efficiency improvement, but it works now.