Hi Guys
I am new with Xamarin Forms
and i want to deserialize this json and put the data in listview
that is my json and i download this json from the last.fm
and this is my class that i create with newtonsoft (special thanks from Creater )
public class Items
{
public string TrackName { get; set; }
public string ArtisterName { get; set; }
}
public class Rootobject
{
public Tracks tracks { get; set; }
}
public class Attr
{
public string page { get; set; }
public string perPage { get; set; }
public string totalPages { get; set; }
public string total { get; set; }
}
public class Streamable
{
public string text { get; set; }
public string fulltrack { get; set; }
}
public class Image
{
public string text { get; set; }
public string size { get; set; }
}
public class Artist
{
public string name { get; set; }
public string mbid { get; set; }
public string url { get; set; }
}
public class Track
{
public string name { get; set; }
public string duration { get; set; }
public string playcount { get; set; }
public string listeners { get; set; }
public string mbid { get; set; }
public string url { get; set; }
public Streamable streamable { get; set; }
public Artist artist { get; set; }
public Image[] image { get; set; }
}
public class Tracks
{
public Track[] track { get; set; }
public Attr attr { get; set; }
}
Can anyone help me to deserialize this json and bind listview with xaml