title: How to get a list of dynamic object properties in c#
body: <p>I have JSON object, something like this, and its dynamic, <strong>jsonInput=</strong></p>
  
  <pre><code>{
      "CONTRATE":80,
      "SALINC":30,
      "RETAGE":67,
      "MARSTATUS":"single",
      "SPOUSEDOB":"1970-01-01",
      "VIEWOPTION":"pension"
  }
  </code></pre>
  
  <p>I am converting it into .NET dynamic object using Newtonsoft.Json converter:</p>
  
  <pre><code>var jsonDynamic = JsonConvert.DeserializeObject&lt;dynamic&gt;(jsonInput);
  </code></pre>
  
  <p>Now I have dynamic jsonDynamic .NET object.</p>
  
  <p>How can I get it's properties now?
  These should be jsonDynamic.CONTRATE, jsonDynamic.SALINC etc...</p>
  
  <p>How can I get the names of these properties from jsonDynamic?</p>
  
  <p>Thanks.</p>