Mercurial > pub > ImplabNet
diff Implab.Test/JsonTests.cs @ 265:74e048cbaac8 v3 v3.0.10
Restored lost JsonXmlCaseTransform from version 2.1
author | cin |
---|---|
date | Mon, 16 Apr 2018 19:43:18 +0300 |
parents | 3a6e18c432be |
children |
line wrap: on
line diff
--- a/Implab.Test/JsonTests.cs Mon Apr 16 18:43:49 2018 +0300 +++ b/Implab.Test/JsonTests.cs Mon Apr 16 19:43:18 2018 +0300 @@ -167,7 +167,7 @@ CloseOutput = false, ConformanceLevel = ConformanceLevel.Document })) - using (var xmlReader = new JsonXmlReader(JsonReader.ParseString(json), new JsonXmlReaderOptions { NamespaceUri = "JsonXmlReaderSimpleTest", NodesPrefix = "json" })) { + using (var xmlReader = new JsonXmlReader(JsonReader.ParseString(json), new JsonXmlReaderOptions { NamespaceUri = "JsonXmlReaderSimpleTest", RootName = "Data", NodesPrefix = "json", CaseTransform = JsonXmlCaseTransform.UcFirst, ArrayItemName = "Item" })) { xmlWriter.WriteNode(xmlReader, false); } Console.WriteLine();