title: Return JSON file with ASP.NET Web API
body: <p>I am trying to return a JSON file using ASP.NET Web API (for testing).</p>
  
  <pre><code>public string[] Get()
  {
      string[] text = System.IO.File.ReadAllLines(@"c:\data.json");
  
      return text;
  }
  </code></pre>
  
  <p>In Fiddler this does appear as a Json type but when I debug in Chrome and view the object it appears as and array of individual lines (left). The right image is what the object should look like when I am using it.</p>
  
  <p><strong>Can anyone tell me what I should return to achieve a Json result in the correct format?</strong></p>
  
  <p><a href="https://i.stack.imgur.com/ZHvam.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZHvam.png" alt="alt"></a>
  </p>