Forum Xamarin.Android


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

RE: Assigning Json Array output from WCF Service to Spinner Control

KathirVelKathirVel USMember ✭✭

Hi All,

Kindly help me on **How to assign the WCF service Json array to spinner control of Mono for andriod ** ?

Find below my sample WCF json array method.

[WebInvoke(Method = "GET",
ResponseFormat = WebMessageFormat.Json,
UriTemplate = "data/{id}")]

public List GetData(string id)
List PERSON = new List();
Person Test= new Person();
Test.Id = 20;
Test.Name = "Leo Messi";
Person Test1= new Person();
Test1.Id = 3;
Test1.Name = "Ronaldo";
return PERSON;

My output is like '[{"Id":20,"Name":"Leo Messi"},{"Id":3,"Name":"Ronaldo"}]'..
Thanks in advance..

Sign In or Register to comment.