Skip to content

Commit 2ffc64b

Browse files
author
perploug
committed
Merge branch '7.0.0' of https://github.com/umbraco/Umbraco-CMS into 7.0.0
2 parents 4c932f0 + c90af1d commit 2ffc64b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Umbraco.Web/umbraco.presentation/library.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,13 +251,13 @@ public static XPathNodeIterator JsonToXml(string json)
251251
json = "{\"arrayitem\":" + json + "}";
252252
}
253253
var xml = JsonConvert.DeserializeXmlNode(json, "json", false);
254-
return xml.CreateNavigator().Select("/");
254+
return xml.CreateNavigator().Select("/json");
255255
}
256256
catch (Exception ex)
257257
{
258258
var xd = new XmlDocument();
259-
xd.LoadXml(string.Format("<error>Could not convert json to xml. Error: {0}</error>", ex));
260-
return xd.CreateNavigator().Select("/");
259+
xd.LoadXml(string.Format("<error>Could not convert JSON to XML. Error: {0}</error>", ex));
260+
return xd.CreateNavigator().Select("/error");
261261
}
262262
}
263263

0 commit comments

Comments
 (0)