Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

How to Parse JSON Object Array of Data into Views?

$
0
0

Hi,

Well i am knew to Xamarin and confuse of how to parse the JSON object content/array of content into views/component. The purpose of this is that i have a online VPS in the cloud, with MySQL Database there. I put the .php files up and call it using URL to return (in JSON object) the data i query. So, this is what i already know from the web service method:

  1. Request HttpURLConnection (Build Strings for example: http://101.10.30.890/index.php?hello=20?testing=10/)
  2. Then my index.php file return JSON object which i can parse (how to parse the object in it?)
  3. If i'm not mistaken using the Class which extends AsyncTask is the best approach, for example:
    class FetchTask extends AsyncTask<String, Void, String>
    which includes onPreExecute, During, and OnPostExecute method?

Please correct me if i am wrong, i am just trying to understand how to get the data into my views (Entry and Label for example). I already know how to request the data and return it, what i am missing is how to parse it and put it into my views. Any help is appreciated :)

Regards,
Kevin


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>