Fetching JSON in C# Xamarin Forms
<p>I'm trying to use my JSON API in Xamarin Forms (C#). The API can return:</p>

<p>When it fails: <code>{"status":"failed"}</code></p>

<p>When everything is okay: <code>{"status":"success","time":"03.06.2016 13:15","data":["Thats a cool text","And thats another text"]}</code></p>

<p>I'm currently doing this:</p>

<pre><code>var client = new HttpClient ();
var url = "http://domain/plan/web/get/" + userclass;

var response = await client.GetAsync (url);
var data = response.Content.ReadAsStringAsync ().Result;
</code></pre>

<p>But now, I need to:</p>

<ul>
<li>Fetch the JSON data into an array or something</li>
<li>Display an alert when the API returns failed (with DisplayAlert())</li>
<li>When the API returns success, get the time, and set the data (the two or more strings at the end of the API result) to a label or a list view.</li>
</ul>

<p>How can I do that?</p>