public static JArray ToJson(this EntityPathCollection paths) { return new JArray(paths.Select(x => new JArray(x.Select(y => y.ToJsonObject())))); } }