GetFiles converted to json

File table broken in this commit