add a utility method: get_package_json