-Fixed not erroring when deserializing incomplete JSON with a parameterized constructor

This commit is contained in:
James Newton-King
2016-10-24 14:20:59 +13:00
parent 570a7ca078
commit 0721bd4dec
2 changed files with 29 additions and 0 deletions
@@ -2194,6 +2194,11 @@ namespace Newtonsoft.Json.Serialization
}
} while (!exit && reader.Read());
if (!exit)
{
ThrowUnexpectedEndException(reader, contract, null, "Unexpected end when deserializing object.");
}
return propertyValues;
}