Rebel.Cms.Web.EntityPathCollectionExtensions.ToJson C# (CSharp) Method

ToJson() public static method

Converts an entity path collection to a JSON object
public static ToJson ( this paths ) : Newtonsoft.Json.Linq.JArray
paths this
return Newtonsoft.Json.Linq.JArray
        public static JArray ToJson(this EntityPathCollection paths)
        {
            return new JArray(paths.Select(x => new JArray(x.Select(y => y.ToJsonObject()))));
        }
    }
EntityPathCollectionExtensions