title: Newtonsoft JSON deserialization not working while using ConfuserEx
body: <p>I have a JSON class like this:</p>
  <pre><code>public class UpdateCheck
  {
      public bool UpdatesAvailable { get; set; }
      public string LinkOfNewVersion { get; set; }
  }
  </code></pre>
  <p>But the value of <code>UpdatesAvailable</code> and <code>LinkOfNewVersion</code> are null when I confuse my assembly using ConfuserEx :/</p>
  <p>I've tried all the following:</p>
  <p>Adding the <code>[Obfuscation(Exclude = false, Feature = &quot;-rename&quot;)]</code> attribute above my JSON class:</p>
  <pre><code>[Obfuscation(Exclude = false, Feature = &quot;-rename&quot;)]
  public class UpdateCheck
  {
      public bool UpdatesAvailable { get; set; }
      public string LinkOfNewVersion { get; set; }
  }
  </code></pre>
  <hr />
  <p>Adding the <code>[Serializable]</code> attribute above my JSON class:</p>
  <pre><code>[Serializable]
  public class UpdateCheck
  {
      public bool UpdatesAvailable { get; set; }
      public string LinkOfNewVersion { get; set; }
  }
  </code></pre>
  <hr />
  <p>Adding both attributes above my JSON class:</p>
  <pre><code>[Serializable]
  [Obfuscation(Exclude = false, Feature = &quot;-rename&quot;)]
  public class UpdateCheck
  {
      public bool UpdatesAvailable { get; set; }
      public string LinkOfNewVersion { get; set; }
  }
  </code></pre>
  <hr />
  <p>But all what I've tried failed :/</p>
  <p>My obfuscation properties:</p>
  <pre><code>  &lt;rule pattern=&quot;true&quot; preset=&quot;maximum&quot; inherit=&quot;false&quot;&gt;
      &lt;protection id=&quot;anti ildasm&quot; /&gt;
      &lt;protection id=&quot;anti tamper&quot; /&gt;
      &lt;protection id=&quot;constants&quot; /&gt;
      &lt;protection id=&quot;ctrl flow&quot; /&gt;
      &lt;protection id=&quot;anti dump&quot; /&gt;
      &lt;protection id=&quot;anti debug&quot; /&gt;
      &lt;protection id=&quot;invalid metadata&quot; /&gt;
      &lt;protection id=&quot;ref proxy&quot; /&gt;
      &lt;protection id=&quot;resources&quot; /&gt;
      &lt;protection id=&quot;typescramble&quot; /&gt;
      &lt;protection id=&quot;rename&quot; /&gt;
    &lt;/rule&gt;
  </code></pre>
  <p>And when I remove the &quot;rename&quot; protection from my ConfuserEx config file, my assembly crashes like that:
  <a href="https://i.stack.imgur.com/eTVtz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eTVtz.png" alt="enter image description here" /></a></p>
  <p>Any help would be appreciated.</p>
  <p>Thanks!</p>