Trying to get value from appsettings.json note that in the Project there is no Startup.cs file and there is no Program.Main().
I google it but there is a problematic solution like creating a new Model, etc...
Is there a simple way to get the ApiKey value from appsettings.json in  .NET Core 6.0?
{
  "ApiKey": "myApiKey",
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft.AspNetCore": "Warning"
    }
  },
  "AllowedHosts": "*"
}