In appsettings.json
{ \"MyArray\": [ \"str1\", \"str2\", \"str3\" ] }
In Startup.cs
In ASP.NET Core 2.2 and later we can inject IConfiguration anywhere in our application like in your case, you can inject IConfiguration in HomeController and use like this to get the array.
string[] array = _config.GetSection("MyArray").Get();