I'm making a C# metro application that utilizes JSON. The following code works fine when the JSON file is stored locally, but when I put it on a server, it doesn't work:
Uri dataUri = new Uri("http://localhost/results.json");
StorageFile file = await StorageFile.GetFileFromApplicationUriAsync(dataUri);
string jsonText = await FileIO.ReadTextAsync(file);
JsonObject jsonObject = JsonObject.Parse(jsonText);
JsonArray jsonArray = jsonObject["Groups"].GetArray();