summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-08-17 20:45:30 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-09-14 19:13:25 -0400
commit2b68b06729b27a7b3c10bc7df4ba2ecab3239f67 (patch)
tree527c84cbad3f2c1f3ed43162bdc8a4c275dac0dd
parent192c54b71cf438768ac5f6c37ae9acd53bea9111 (diff)
downloadSMAPI-2b68b06729b27a7b3c10bc7df4ba2ecab3239f67.tar.gz
SMAPI-2b68b06729b27a7b3c10bc7df4ba2ecab3239f67.tar.bz2
SMAPI-2b68b06729b27a7b3c10bc7df4ba2ecab3239f67.zip
don't strip comments when validating JSON (#654)
-rw-r--r--src/SMAPI.Web/Controllers/JsonValidatorController.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/SMAPI.Web/Controllers/JsonValidatorController.cs b/src/SMAPI.Web/Controllers/JsonValidatorController.cs
index 31471141..b2eb9a87 100644
--- a/src/SMAPI.Web/Controllers/JsonValidatorController.cs
+++ b/src/SMAPI.Web/Controllers/JsonValidatorController.cs
@@ -97,7 +97,8 @@ namespace StardewModdingAPI.Web.Controllers
{
parsed = JToken.Parse(paste.Content, new JsonLoadSettings
{
- DuplicatePropertyNameHandling = DuplicatePropertyNameHandling.Error
+ DuplicatePropertyNameHandling = DuplicatePropertyNameHandling.Error,
+ CommentHandling = CommentHandling.Load
});
}
catch (JsonReaderException ex)