detect YAML/JSON if suffix is not revealing