diff --git a/src/Umbraco.Web.BackOffice/ModelBinders/FromJsonPathAttribute.cs b/src/Umbraco.Web.BackOffice/ModelBinders/FromJsonPathAttribute.cs index 371f146e00..aa33406db3 100644 --- a/src/Umbraco.Web.BackOffice/ModelBinders/FromJsonPathAttribute.cs +++ b/src/Umbraco.Web.BackOffice/ModelBinders/FromJsonPathAttribute.cs @@ -23,7 +23,7 @@ namespace Umbraco.Web.BackOffice.ModelBinders /// normal json formatter will not figure this out. /// This would also let you bind sub levels of the JSON being sent up too if you wanted with any jsonpath /// - internal class FromJsonPathAttribute : ModelBinderAttribute + public class FromJsonPathAttribute : ModelBinderAttribute { public FromJsonPathAttribute() : base(typeof(JsonPathBinder)) { @@ -40,7 +40,7 @@ namespace Umbraco.Web.BackOffice.ModelBinders } - var strJson = bindingContext.HttpContext.Request.GetRawBodyString(); + var strJson = await bindingContext.HttpContext.Request.GetRawBodyStringAsync(); if (string.IsNullOrWhiteSpace(strJson))