You have json
"paid_through_account_name": "Petty Cash" where "Petty Cash" is string
. But in your model property public Paid_Through_Account_Name
has type int
. Try change type to string
.
[DataContract]
public class Expense
{
[DataMember(Name = "account_name")]
public string Account_Name { get; set; }
[DataMember(Name = "paid_through_account_name")]
public string Paid_Through_Account_Name { get; set; } //string type
}
Update
Probably you are trying to update the UI from the other (not main) thread. In Windows Phone app you can update UI
only in main thread. In this case, use such construction Dispatcher.
Dispatcher.BeginInvoke(() =>
{
TextBox.Text = myString;
});
http://msdn.microsoft.com/en-us/library/ms741870.aspx
http://weimenglee.blogspot.ru/2013/07/windows-phone-tip-updating-ui-from.html