I am trying to return a JSON file using ASP.NET Web API (for testing).
public string[] Get()
{
string[] text = System.IO.File.ReadAllLines(@"c:\data.json");
return text;
}
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.
Can anyone tell me what I should return to achieve a Json result in the correct format?