title: Remove double curly brackets from JObject
body: <p>I have a XYZ.Json file with following content.</p>
  
  <pre><code>{
    "ABC": "Account",
    "CDE": "Balance",
    "EFG": "Enquiry"
  }
  </code></pre>
  
  <p>Using the following code I'm trying to read and return JObject from this Json, but extra curly braces is added at the beginning and end of the json structure.</p>
  
  <pre><code>JObject obj1 = JObject.Parse(System.IO.File.ReadAllText(@".\XYZ\install\XYZ.json));
  </code></pre>
  
  <p>obj1:</p>
  
  <pre><code>{{
    "ABC": "Account",
    "CDE": "Balance",
    "EFG": "Enquiry"
  }}
  </code></pre>
  
  <p>I have tried this <a href="https://stackoverflow.com/questions/41266503/remove-double-curly-brackets-from-jobject-that-have-been-added-during-deserializ">option</a>, converting <code>Jobject.Tostring()</code> but it didn't work. </p>
  
  <p>Also tried this code, but still I see the same issue.</p>
  
  <pre><code>    Dictionary&lt;string, string&gt; dict = new Dictionary&lt;string, string&gt;();
      JObject obj = JObject.Parse(System.IO.File.ReadAllText(@".\XYZ\install\XYZ.json));
  
      foreach (JProperty prop in obj.Properties())
      {
          dict.Add(prop.Name, obj.GetValue(prop.Name).ToObject&lt;string&gt;());
      };
  
  
      JObject obj3 = JObject.Parse(JsonConvert.SerializeObject(dict));
  </code></pre>
  
  <p>obj3:</p>
  
  <pre><code>{{
    "ABC": "Account",
    "CDE": "Balance",
    "EFG": "Enquiry"
  }}
  </code></pre>
  
  <p>Please suggest if there are any other solutions.</p>