-Added support for DataContractAttribute and DataMemberAttribute to JsonSerializer

-Added support for serializing private members by marking them with JsonPropertyAttribute or DataMemberAttribute
This commit is contained in:
JamesNK
2009-05-09 10:19:32 +00:00
parent a0a8599d3d
commit 3b26adfdd1
12 changed files with 290 additions and 35 deletions
@@ -40,5 +40,10 @@ namespace Newtonsoft.Json.Tests
// return utcOffset.Hours.ToString("+00;-00") + utcOffset.Minutes.ToString("00;00");
//}
protected string EscapedJson(string json)
{
return @"@""" + json.Replace(@"""", @"""""") + @"""";
}
}
}