Recursively merge files in a directory into a single json object.