/// <summary> /// Converts a list of dependencies to JSON /// </summary> /// <param name="dependencies">List of dependencies</param> /// <returns>List of dependencies in JSON format</returns> private static JArray ConvertDependenciesToJson(DependencyCollection dependencies) { var dependenciesJson = new JArray( dependencies.Select(d => new JObject( new JProperty("path", d.Url), new JProperty("content", d.Content)) ) ); return dependenciesJson; }