title: An Error Occurred While serializing to JSON
body: <p>Hi firends i'm getting error when i tried to Serialize JSON. I have a model and it have List property;
  MyModel:</p>
  <pre><code>public virtual int Kod { get; set; }
      public virtual string Ad { get; set; }
      public virtual string TrafikKod { get; set; }
      public virtual int TapuKod { get; set; }
      public virtual bool AktifMi { get; set; }
  
      [JsonIgnore]
      public virtual IList&lt;TapuIlceModel&gt; IlceList { get; set; }
  
  
      public TapuIlModel()
      {
          IlceList = new List&lt;TapuIlceModel&gt;();
      }
  </code></pre>
  <p>MyApiController:</p>
  <pre><code>  [Route(&quot;api/TapuZeminApi/GetZemins&quot;)]
      [HttpPost]
      public string GetZeminsFromZeminArg(object arg)
      {
          ZeminArg zemArg = SConvert.DeserializeJSON&lt;ZeminArg&gt;(arg.ToString());
         
          List&lt;TapuZeminModel&gt; zeminList = TapuModule.GetZeminListFromArgs(zemArg);
                      
  
          string jsonResult = SConvert.SerializeJSON(zeminList);
          return jsonResult;
  </code></pre>
  <p>Here is a picture about my reciving data error;</p>
  <p><a href="https://i.stack.imgur.com/1TQNE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1TQNE.png" alt="enter image description here" /></a></p>
  <p>And this my inner exc.;</p>
  <p>.{&quot;Error getting value from 'ReadOnly' on 'NHibernate.Proxy.DefaultLazyInitializer'.&quot;}</p>
  <p>.{&quot;Proxy is detached (i.e, session is null). The read-only/modifiable setting is only accessible when the proxy is associated with an open session.&quot;}</p>
  <p>What should i do? I need all data... Thanks</p>
  <p>when i check again i found something like that:</p>
  <p><a href="https://i.stack.imgur.com/QzKrz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QzKrz.png" alt="enter image description here" /></a></p>
  <p>Why is there 2 base??? And why name is different? Anyone know?</p>