File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/Umbraco.Web/umbraco.presentation Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -251,13 +251,13 @@ public static XPathNodeIterator JsonToXml(string json)
251
251
json = "{\" arrayitem\" :" + json + "}" ;
252
252
}
253
253
var xml = JsonConvert . DeserializeXmlNode ( json , "json" , false ) ;
254
- return xml . CreateNavigator ( ) . Select ( "/" ) ;
254
+ return xml . CreateNavigator ( ) . Select ( "/json " ) ;
255
255
}
256
256
catch ( Exception ex )
257
257
{
258
258
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 " ) ;
261
261
}
262
262
}
263
263
You can’t perform that action at this time.
0 commit comments