title: how to get data from JSON without using script?
body: <p>i want to get data from json file without using script code!</p>
  
  <p>iam using MVC4 and want to put the code in the .cshtml file, how can i do this?</p>
  
  <p>( Iam using kendo function)</p>
  
  <p>example:</p>
  
  <pre><code>@{
      ViewBag.Title = "Home Page";
  }
  
  &lt;div class="chart-wrapper"&gt;
      @(Html.Kendo().Chart()
          .Name("chart")
                  .Title(title =&gt; title
                      .Text("Share of Internet Population Growth, 2007 - 2012")
                      .Position(ChartTitlePosition.Bottom))
          .Legend(legend =&gt; legend
              .Visible(false)
          )
          .DataSource(dataSource=&gt;dataSource.Read(read=&gt;read.Url("~/")))      
  
          .Events(e =&gt; e.SeriesClick("onSeriesHover"))
          .Series(series =&gt; {
              series.Pie(new dynamic[] {
                  new {category="Asia",value=53.8,color="#9de219"},
                  new {category="Europe",value=16.1,color="#90cc38"},
                  new {category="LatinAmerica",value=11.3,color="#068c35"},
                  new {category="Africa",value=9.6,color="#006634"},
                  new {category="MiddleEast",value=5.2,color="#004d38"},
                  new {category="NorthAmerica",value=3.6,color="#033939"}           
              })
              .Labels(labels =&gt; labels
                  .Template("#= category #: #= value#%")
                  .Background("transparent")
                  .Visible(true)
                  .Color("Red")
              )
              .StartAngle(150);
          })
          .Tooltip(tooltip =&gt; tooltip
              .Visible(true)
              .Format("{0}%")
          )
  
      ) 
      &lt;script&gt;
          function onSeriesClick(e) {
              alert(kendo.format("Series click :: {0} ({1}): {2}",
                  e.series.name, e.category, e.value));
          }
  
  
      &lt;/script&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>i have use
  .DataSource(dataSource=>dataSource.Read(read=>read.Url("~/"))) 
  but not working</p>