title: CodeFluent JSON Serialization Does Not Work for All Fields
body: <p>I'm using CodeFluent JsonUtilities to convert an object to JSON. Using anything else seems to have various other issues (e.g. Circular Referencing).</p>
  
  <p>Here's some functions I use to convert to JSON for ASP.NET MVC, using CodeFluent.Runtime.Utilities namespace (for the JsonUtilities).</p>
  
  <pre><code>    public static ContentResult ConvertToJsonResponse(object obj)
      {
          string json = JsonUtilities.Serialize(obj);
          return PrepareJson(json);
      }
  
      /// &lt;summary&gt;
      /// Converts JSON string to a ContentResult object suitable as a response back to the client
      /// &lt;/summary&gt;
      /// &lt;param name="json"&gt;&lt;/param&gt;
      /// &lt;returns&gt;&lt;/returns&gt;
      public static ContentResult PrepareJson(string json)
      {
          ContentResult content = new ContentResult();
          content.Content = json;
          content.ContentType = "application/json";
  
          return content;
      }
  </code></pre>
  
  <p>The problem is when I use JsonUtilities to convert an object it seems to have skipped some nested objects.</p>
  
  <p>For example, I tried to convert DataSourceResult object (from Telerik) to JSON using CodeFluent.</p>
  
  <pre><code>public ActionResult UpdateTeam([DataSourceRequest]DataSourceRequest request, TeamViewModel teamViewModel)
  {
      ModelState.AddModelError("", "An Error!");
      DataSourceResult dataSourceResult = new[] { teamViewModel }.ToDataSourceResult(request, ModelState);
      ContentResult ret = CodeFluentJson.ConvertToJsonResponse(dataSourceResult);
      return ret;
  }
  </code></pre>
  
  <p>The dataSourceResult holds three main properties: </p>
  
  <ol>
  <li>Data - which hold my Model that contains my data.</li>
  <li>Total - which holds the amount of data objects there are.</li>
  <li>Errors - which holds all the errors of my MVC model. It is very nested, with a lot of properties under it.</li>
  </ol>
  
  <p>When I try to use CodeFluent utilities to convert the DataSourceResult object it works to convert "Data", and "Total" fields, but with Errors, it skips it entirely, resulting in the below JSON string:</p>
  
  <pre><code>{  
     "Data":[  
        {  
           "ExampleProperty":"ExampleValue"
        }
     ],
     "Total":1,
     "AggregateResults":null,
     "Errors":{  }
  }
  </code></pre>
  
  <p>I'm guessing the issue is with the "Errors" object being too nested for the CodeFluent converter.
  So my question is are there any CodeFluent serialization options/code I'm missing to work with heavily nested objects for JSON conversion?</p>