Is there any way to edit value inside appsetting.json using controller?
So, here is the appsetting.json:
{
"Person": {
"p1": "test1",
"p2": "test2",
"p3": "test3"
}
}
and this is the class:
public class
{
public string p1{ get; set; }
public string p2{ get; set; }
public string p3{ get; set; }
}
I do some research but no clue. I just find how to read the value of appsetting.json. What I want is to edit the value from controller and save it.