Class FromJsonPathAttribute
Used to bind a value from an inner json property
Inheritance
System.Object
System.Attribute
Microsoft.AspNetCore.Mvc.ModelBinderAttribute
Namespace: Umbraco.Cms.Web.BackOffice.ModelBinders
Assembly: Umbraco.Web.BackOffice.dll
Syntax
public class FromJsonPathAttribute : ModelBinderAttribute, IModelNameProvider, IBinderTypeProviderMetadata, IBindingSourceMetadata
Remarks
An example would be if you had json like: { ids: [1,2,3,4] } And you had an action like: GetByIds(int[] ids, UmbracoEntityTypes type) The ids array will not bind because the object being sent up is an object and not an array so the 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
Constructors
View SourceFromJsonPathAttribute()
Declaration
public FromJsonPathAttribute()