don't strip comments when validating JSON (#654)

This commit is contained in:
Jesse Plamondon-Willard 2019-08-17 20:45:30 -04:00
parent 192c54b71c
commit 2b68b06729
No known key found for this signature in database
GPG Key ID: CF8B1456B3E29F49
1 changed files with 2 additions and 1 deletions

View File

@ -97,7 +97,8 @@ namespace StardewModdingAPI.Web.Controllers
{ {
parsed = JToken.Parse(paste.Content, new JsonLoadSettings parsed = JToken.Parse(paste.Content, new JsonLoadSettings
{ {
DuplicatePropertyNameHandling = DuplicatePropertyNameHandling.Error DuplicatePropertyNameHandling = DuplicatePropertyNameHandling.Error,
CommentHandling = CommentHandling.Load
}); });
} }
catch (JsonReaderException ex) catch (JsonReaderException ex)