ASP.NET MVC custom json config file
<p>I have a json configuration file: </p>

<pre><code>{
  "chat": {
    "host": "http://localhost:4555"
  }
}
</code></pre>

<p>Also I have created class : </p>

<pre><code>public class ChatConf
{
    public String host { get; set; }
}
</code></pre>

<p>In my Startup file I'm doing this: </p>

<pre><code>services.AddOptions();
services.Configure&lt;ChatConf&gt;(Configuration.GetSection("chat"));
</code></pre>

<p>The question is how can I get value of host in my main Layout?</p>

<p>Thanks.</p>