title: .NET Core Object JSON Serialization to Javascript format
body: <p>I've some problems with serializing my C# objects into a plain JSON string.</p>
  
  <p>I user JsonConvert ( Newtonsoft's one) to format a model into a JSON. The problem is that that JSON string get's used in some Javascript, but the format is not good as in a quote gets written down as "&quote;" instead of "'". Any idea's on how to fix this ?</p>
  
  <pre><code>//...
  @{
      var dataJson = JsonConvert.SerializeObject(Model);
  }
  //...
  
  &lt;script&gt;
      function ChangeGroup(type) {
          $.ajax({
              url: //...,
              data: @dataJson
          });
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>what I get is this: </p>
  
  <p><a href="https://i.stack.imgur.com/MVXoj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MVXoj.png" alt="error"></a></p>
  
  <p>Some formatting options I forget to set ?</p>