How to get the json message from url using xamarin cross platform development? -
How to get JSN data from URL using JMRen Cross Platform development Div class = "post-text" itemprop = "text">
personal prong string URL = "http://www.nactem.ac.uk/software/ Acromine / dictionary.py sf = {0} "; Public async works & lt; List & lt; RootObject & gt; & Gt; GetResult (String SearchString) {try {var client = new HttpClient ()} Var json = Wait for the client. Getstring asynchronous (string format (url, searchstring)); Return JsonConvert.DeserializeObject & lt; List & lt; RootObject & gt; & Gt; (Json.ToString ()); } Hold (system exception exception) {return tap; }}
To get the string from the URL, using the http client
call url and getStrinAsyncc
. Use DeserializeObject
to convert the string into Jason format. See more to see the full program in Zamorin
Comments
Post a Comment