title: Newtonsoft.Json how to deserialize json Key : Value to C# Property
body: <p>my json file likes bellow</p>
  <pre><code>{
      &quot;Tag&quot;: &quot;en&quot;,
      &quot;Errors&quot;: {
          &quot;MethodRefreshIsNull&quot;: &quot;refreshMethod is null.&quot;
      } 
  }
  </code></pre>
  <p>and i want convert</p>
  <pre><code>&quot;MethodRefreshIsNull&quot;: &quot;refreshMethod is null.&quot;
  </code></pre>
  <p>to</p>
  <pre><code>public KeyInfo MethodRefreshIsNull { get; set; }
  </code></pre>
  <p>and the class KeyInfo is</p>
  <pre><code>public class KeyInfo 
  {
      public string Value { get; set; }
  
      *public void OutputToConsole()
      {
           console.WriteLine(Value);
      }*
  }
  </code></pre>
  <p>then the string   <strong>&quot;refreshMethod is null.&quot;</strong>   will be the <strong>Value</strong>  .</p>
  <p>is there any simple way to convert that ?</p>
  <p>----------------update</p>
  <pre><code>public void OutputToConsole()
  {
       console.WriteLine(Value);
  }
  </code></pre>
  <p>class KeyInfo has methods and other properties.</p>