Retrieve configuration from appsettings.json
<p>ASP.NET Core now uses appsettings.json for the application configuration, i just want to get the connection strings from the following appsettings.json file:</p>

<pre><code>{
  "Logging": {
    "IncludeScopes": false,
    "LogLevel": {
      "Default": "Debug",
      "System": "Information",
      "Microsoft": "Information"
    }
  },
  "ConnectionStrings": {
    "Default": "Server=localhost; Database=mydatabase; Trusted_Connection=True;User id=myuser;Password=mypass;Integrated Security=SSPI;"
  }
}
</code></pre>

<p>That's the only value the I need to get in my controllers.  Do I really need to create a class for it?</p>