Skip to content

Commit

Permalink
Merge branch 'v7/dev' into v8/dev
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/Umbraco.Core/Serialization/JsonNetSerializer.cs
#	src/Umbraco.Web/Editors/BackOfficeController.cs
  • Loading branch information
nul800sebastiaan committed Sep 26, 2019
2 parents 4904060 + 16837d0 commit 5831cd9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Umbraco.Core/Serialization/JsonNetSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public object FromStream(Stream input, Type outputType)
/// <returns></returns>
public IStreamedResult ToStream(object input)
{
string s = JsonConvert.SerializeObject(input, Formatting.Indented, _settings);
string s = JsonConvert.SerializeObject(input, Formatting.None, _settings);
byte[] bytes = Encoding.UTF8.GetBytes(s);
MemoryStream ms = new MemoryStream(bytes);

Expand Down
6 changes: 3 additions & 3 deletions src/Umbraco.Web/Editors/BackOfficeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public JsonNetResult LocalizedText(string culture = null)
.ToDictionary(pv => pv.Key, pv =>
pv.ToDictionary(pve => pve.valueAlias, pve => pve.value));

return new JsonNetResult { Data = nestedDictionary, Formatting = Formatting.Indented };
return new JsonNetResult { Data = nestedDictionary, Formatting = Formatting.None };
}

/// <summary>
Expand Down Expand Up @@ -236,15 +236,15 @@ JArray GetAssetList()
GetAssetList,
new TimeSpan(0, 2, 0));

return new JsonNetResult { Data = result, Formatting = Formatting.Indented };
return new JsonNetResult { Data = result, Formatting = Formatting.None };
}

[UmbracoAuthorize(Order = 0)]
[HttpGet]
public JsonNetResult GetGridConfig()
{
var gridConfig = Current.Configs.Grids();
return new JsonNetResult { Data = gridConfig.EditorsConfig.Editors, Formatting = Formatting.Indented };
return new JsonNetResult { Data = gridConfig.EditorsConfig.Editors, Formatting = Formatting.None };
}


Expand Down

0 comments on commit 5831cd9

Please sign in to comment.