-Added support for reading multiple comma delimited values with JsonReader.SupportMultipleContent

This commit is contained in:
James Newton-King
2017-07-01 16:43:15 +12:00
parent c21d2649ac
commit 6aed848eca
5 changed files with 122 additions and 2 deletions
+2 -2
View File
@@ -1032,7 +1032,7 @@ namespace Newtonsoft.Json
internal void SetPostValueState(bool updateIndex)
{
if (Peek() != JsonContainerType.None)
if (Peek() != JsonContainerType.None || SupportMultipleContent)
{
_currentState = State.PostValue;
}
@@ -1064,7 +1064,7 @@ namespace Newtonsoft.Json
throw JsonReaderException.Create(this, "JsonToken {0} is not valid for closing JsonType {1}.".FormatWith(CultureInfo.InvariantCulture, endToken, currentObject));
}
if (Peek() != JsonContainerType.None)
if (Peek() != JsonContainerType.None || SupportMultipleContent)
{
_currentState = State.PostValue;
}