-Fixed JToken Load and Parse methods not checking for incomplete content
This commit is contained in:
@@ -260,10 +260,7 @@ namespace Newtonsoft.Json.Linq
|
||||
JProperty p = new JProperty((string)reader.Value);
|
||||
p.SetLineInfo(reader as IJsonLineInfo);
|
||||
|
||||
if (!reader.Read())
|
||||
throw new Exception("Error reading JProperty from JsonReader.");
|
||||
|
||||
p.ReadContentFrom(reader);
|
||||
p.ReadTokenFrom(reader);
|
||||
|
||||
return p;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user