how to read values from appsettings.json in c# .net core code example
Example 1: .net core convert keycollection to array
string[] keys = new string[dictionary.Keys.Count];
dictionary.Keys.CopyTo(keys, 0);
Example 2: how get data from json in c#
public class JSONResponse
{
public string status { get; set; }
public List<Article> articles { get; set; }
}
JSONResponse response = JsonConvert.DeserializeObject<JSONResponse>(myJSON);