-Fixed inconsistent JsonTextReader.LinePosition

-Fixed JsonReader.Path with escaped property names
This commit is contained in:
James Newton-King
2015-10-03 17:11:45 +13:00
parent a3193a9523
commit 172c1d8f30
18 changed files with 169 additions and 94 deletions
+3 -3
View File
@@ -61,9 +61,6 @@ namespace Newtonsoft.Json
switch (Type)
{
case JsonContainerType.Object:
if (sb.Length > 0)
sb.Append('.');
string propertyName = PropertyName;
if (propertyName.IndexOfAny(SpecialCharacters) != -1)
{
@@ -73,6 +70,9 @@ namespace Newtonsoft.Json
}
else
{
if (sb.Length > 0)
sb.Append('.');
sb.Append(propertyName);
}
break;