we have a json serializer and deserializer downloaded, it reads the profile object find, but its not putting in the Client item in the list. Here is the json
{"Profile": [{
"Name":"Joe",
"Last :"Doe",
"Client":
{
"ClientId":"1",
"Product":"Apple",
"Message":"Peter likes apples"
},
"Date":"2012-02-14"
}]}
So in my profile class i have
public class Profile
{
public string Name {get; set;}
public string Last {get; set;}
public List<Client> Client {get; set;}
public DateTime dDate {get; set;}
public Profile()
{
}
public Profile BuildEntity()
{
Profile profile = new Profile();
profile.Name = this.Name;
profile.Last = this.LastName;
profile.Client = this.client;
profile.dDate = this.dDate;
return dDate;
}
}
Now, when I debug all the items have values except for the list. Does anyone know what it might be?
NOTE: This is being posted to our Profile.asmx web service
Regards