title: How can i convert JObject to object in C#?
body: <p>I have a JObject such as :</p>
  <pre><code>JObject obj = new JObject();
  obj.Add(new JProperty(&quot;Name&quot;,&quot;Olivier&quot;));
  obj.Add(new JProperty(&quot;Surname&quot;,&quot;Big&quot;));
  obj.Add(new JProperty(&quot;FatherName&quot;,&quot;Johnatan&quot;));
  </code></pre>
  <p>I want to convert obj above to object</p>
  <p>If I use the this code below</p>
  <pre><code>var result1 = Newtonsoft.Json.JsonConvert.DeserializeObject&lt;object&gt;(obj.ToString());
  </code></pre>
  <p>the result is like this
  <a href="https://i.stack.imgur.com/nNYHS.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nNYHS.jpg" alt="Img1" /></a></p>
  <p>But the result that wanted is like below</p>
  <pre><code>var TheResultIWant = new { Name = &quot;Olivier&quot;, Surname = &quot;Big&quot;, FatherName = &quot;Johnatan&quot; };
  </code></pre>
  <p><a href="https://i.stack.imgur.com/0oRz2.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0oRz2.jpg" alt="Img2" /></a></p>
  <p>Is there any kind of way I can obtain the object like the second image. I cannot code like it because I don't know the property name.</p>