Accept package names end with .json or .tar.gz