diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-08-17 20:45:30 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-09-14 19:13:25 -0400 |
commit | 2b68b06729b27a7b3c10bc7df4ba2ecab3239f67 (patch) | |
tree | 527c84cbad3f2c1f3ed43162bdc8a4c275dac0dd /src/SMAPI.Web/Controllers | |
parent | 192c54b71cf438768ac5f6c37ae9acd53bea9111 (diff) | |
download | SMAPI-2b68b06729b27a7b3c10bc7df4ba2ecab3239f67.tar.gz SMAPI-2b68b06729b27a7b3c10bc7df4ba2ecab3239f67.tar.bz2 SMAPI-2b68b06729b27a7b3c10bc7df4ba2ecab3239f67.zip |
don't strip comments when validating JSON (#654)
Diffstat (limited to 'src/SMAPI.Web/Controllers')
-rw-r--r-- | src/SMAPI.Web/Controllers/JsonValidatorController.cs | 3 |
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) |