Validate package.json.