-Fixed DefaultValueHandling.Ignore with decimal properties
-Fixed approximate floating point comparisons
This commit is contained in:
@@ -1314,6 +1314,27 @@ namespace Newtonsoft.Json.Tests.Converters
|
||||
}", json);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void EmtpyElementWithArrayAttributeShouldWriteElement()
|
||||
{
|
||||
string xml = @"<root>
|
||||
<Reports d1p1:Array=""true"" xmlns:d1p1=""http://james.newtonking.com/projects/json"" />
|
||||
</root>";
|
||||
|
||||
XmlDocument d = new XmlDocument();
|
||||
d.LoadXml(xml);
|
||||
|
||||
string json = JsonConvert.SerializeXmlNode(d, Formatting.Indented);
|
||||
|
||||
Assert.AreEqual(@"{
|
||||
""root"": {
|
||||
""Reports"": [
|
||||
{}
|
||||
]
|
||||
}
|
||||
}", json);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void DeserializeNonInt64IntegerValues()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user