suffix .json to file path when not provided