-Changed DataContractAttribute on collections back to array serialization
-Fixed JObject.GetPropertyOwner to return value -Fixed JPropertyDescriptor GetValue and SetValue to return null for null owner
This commit is contained in:
@@ -60,13 +60,13 @@ namespace Newtonsoft.Json.Tests.Issues
|
||||
};
|
||||
|
||||
string json = JsonConvert.SerializeObject(activities, Formatting.Indented);
|
||||
StringAssert.AreEqual(@"{
|
||||
""List"": [
|
||||
{
|
||||
""Name"": ""An activity""
|
||||
}
|
||||
]
|
||||
}", json);
|
||||
// note that this has been reverted back in 11.0.2 because it is causing compat issues
|
||||
// https://github.com/JamesNK/Newtonsoft.Json/issues/1627
|
||||
StringAssert.AreEqual(@"[
|
||||
{
|
||||
""Name"": ""An activity""
|
||||
}
|
||||
]", json);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
Reference in New Issue
Block a user