The content is returning null. I don't understand why. If I put a Json string into the content variable the function will work how I want it to work. but i cant get the json file directly from the url. I saw that there is another way of downloading the json which is Webclient but that don't work it says the variable or namespace could not be found. Even though I imported using System.Net; I tried it on a console app and it works but not in the windows phone app.
public async void ParcingJ()
{
HttpClient httpClient = new HttpClient();
string content = await httpClient.GetStringAsync(
new Uri("http://localhost/test.php"));
JArray jsonObject = JArray.Parse(content);
txtOut.Text = content;
}