RegExp has to check for .json too