From 2b68b06729b27a7b3c10bc7df4ba2ecab3239f67 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sat, 17 Aug 2019 20:45:30 -0400 Subject: don't strip comments when validating JSON (#654) --- src/SMAPI.Web/Controllers/JsonValidatorController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/SMAPI.Web/Controllers') 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) -- cgit