Automatically sets filetype for .json files