summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/SMAPI.Web/Controllers/JsonValidatorController.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/SMAPI.Web/Controllers/JsonValidatorController.cs b/src/SMAPI.Web/Controllers/JsonValidatorController.cs
index 9d1685ac..37393a98 100644
--- a/src/SMAPI.Web/Controllers/JsonValidatorController.cs
+++ b/src/SMAPI.Web/Controllers/JsonValidatorController.cs
@@ -97,6 +97,9 @@ namespace StardewModdingAPI.Web.Controllers
return this.View("Index", result.AddErrors(new JsonValidatorErrorModel(ex.LineNumber, ex.Path, ex.Message)));
}
+ // format JSON
+ result.SetContent(parsed.ToString(Formatting.Indented));
+
// skip if no schema selected
if (schemaName == "none")
return this.View("Index", result);