title: return Json array from MVC controller
body: <p>I want to return Json array like this for jwplayer:</p>
  
  <pre><code>{"file":"example_file.mp4","large.file":"","hd.file":"","image":"http://www.example.com/example_image.jpg"}
  </code></pre>
  
  <p>but however I can just return array without dot (.) in array attribute names. because my mvc viewmodel can't have . in the varible name.</p>
  
  <pre><code>{"file":"example_file.mp4","largefile":"","hdfile":"","image":"http://www.example.com/example_image.jpg"}
  </code></pre>
  
  <p>Controller code: </p>
  
  <pre><code>public ActionResult Index(int id)
          {
              return Json(_ext.GetSrcNow(id), JsonRequestBehavior.AllowGet);
          }
  </code></pre>
  
  <p>Model code:</p>
  
  <pre><code>public SrcViewModel GetSrcNow(int Vid_id)
          {
              var mv = _ext.Get(p =&gt; p.video_id == Vid_id);
              if (mv == null) return null;
              return new SrcViewModel 
              {
                  file = mv.vid_src_mp4,
                  image = mv.vid_image,
                  largefile = mv.vid_largesrc_mp4,
                  hdfile = mv.vid_hdsrc_mp4
              };
          }
  </code></pre>
  
  <p>ViewModel code:</p>
  
  <pre><code>public class SrcViewModel
  {
      public string file { get; set; }
      public string image { get; set; }
      public string largefile { get; set; }
      public string hdfile { get; set; }
  }
  </code></pre>
  
  <p>The above code is working perfect with 'largefile' and 'hdfile' attribute names, but I want it like 'large.file' and 'hd.file'</p>
  
  <p>Please help me solve this issue. Thanks</p>