public IEnumerable <JObject> GetPolicies() { if (Patch.Type == JTokenType.Array) { return(Patch.Children <JObject>()); } else if (Patch.Type == JTokenType.Object) { return(new[] { (JObject)Patch }); } return(new List <JObject>()); }