diff --git a/src/Umbraco.Core/Serialization/JsonNetSerializer.cs b/src/Umbraco.Core/Serialization/JsonNetSerializer.cs
index 52f39c6109..80e123d9ea 100644
--- a/src/Umbraco.Core/Serialization/JsonNetSerializer.cs
+++ b/src/Umbraco.Core/Serialization/JsonNetSerializer.cs
@@ -61,8 +61,7 @@ namespace Umbraco.Core.Serialization
///
public IStreamedResult ToStream(object input)
{
- var formatting = GlobalSettings.DebugMode ? Formatting.Indented : Formatting.None;
- string s = JsonConvert.SerializeObject(input, formatting, _settings);
+ string s = JsonConvert.SerializeObject(input, Formatting.None, _settings);
byte[] bytes = Encoding.UTF8.GetBytes(s);
MemoryStream ms = new MemoryStream(bytes);
diff --git a/src/Umbraco.Web/Editors/BackOfficeController.cs b/src/Umbraco.Web/Editors/BackOfficeController.cs
index 4a79038fc0..414fb9a1df 100644
--- a/src/Umbraco.Web/Editors/BackOfficeController.cs
+++ b/src/Umbraco.Web/Editors/BackOfficeController.cs
@@ -177,8 +177,7 @@ namespace Umbraco.Web.Editors
//the dictionary returned is fine but the delimiter between an 'area' and a 'value' is a '/' but the javascript
// in the back office requres the delimiter to be a '_' so we'll just replace it
.ToDictionary(key => key.Key.Replace("/", "_"), val => val.Value);
- var formatting = GlobalSettings.DebugMode ? Formatting.Indented : Formatting.None;
- return new JsonNetResult { Data = textForCulture, Formatting = formatting };
+ return new JsonNetResult { Data = textForCulture, Formatting = Formatting.None };
}
///
@@ -230,8 +229,7 @@ namespace Umbraco.Web.Editors
typeof(BackOfficeController) + "GetManifestAssetList",
() => getResult(),
new TimeSpan(0, 10, 0));
- var formatting = GlobalSettings.DebugMode ? Formatting.Indented : Formatting.None;
- return new JsonNetResult { Data = result, Formatting = formatting };
+ return new JsonNetResult { Data = result, Formatting = Formatting.None };
}
[UmbracoAuthorize(Order = 0)]
@@ -244,8 +242,7 @@ namespace Umbraco.Web.Editors
new DirectoryInfo(Server.MapPath(SystemDirectories.AppPlugins)),
new DirectoryInfo(Server.MapPath(SystemDirectories.Config)),
HttpContext.IsDebuggingEnabled);
- var formatting = GlobalSettings.DebugMode ? Formatting.Indented : Formatting.None;
- return new JsonNetResult { Data = gridConfig.EditorsConfig.Editors, Formatting = formatting };
+ return new JsonNetResult { Data = gridConfig.EditorsConfig.Editors, Formatting = Formatting.None };
}