title: Add Object from razor to js list not working
body: <p>i get this in chrome debug  <code>picsList.push(BL.datafuncs+pics);</code>
  a string
  insted of <code>picsList.push([{img:"",url:""}]);</code> an object</p>
  
  <pre><code>&lt;script&gt;
   var picsList = [];
  
      @foreach (var item in BL.datafuncs.GetMainPagePics())
          {
               @:picsList.push(@item);
          }
  &lt;/script&gt;
  
  
   public class pics
          {
              public string img { get; set; }
              public string url { get; set; }
          }
  
          public static List&lt;pics&gt; GetMainPagePics()
          {
              List&lt;pics&gt; a = new List&lt;pics&gt;();
  
                      pics p =new pics();
                      p.img = "", 
                      p.url = "";
                      a.Add(p);
  
              return a;
          }
  </code></pre>