private void WriteJsonResponse(HttpContext context, List<FileDescriptor> results)
{
context.Response.ContentType = "application/json";
JsonResponse response = new JsonResponse() { Success = true, Response = new Dictionary<string, object>() };
response.Response.Add("files", results.ToArray());
var jsonObj = JsonConvert.SerializeObject(response);
context.Response.Write(jsonObj);
}