private static bool Enroll(string dna, string typingId) { TypingEnrolViewModel request = new TypingEnrolViewModel(); request.samples = new List(); request.user_id = typingId; request.samples.Add(dna); string jsonObject = new JavaScriptSerializer().Serialize(request); HttpResponse response = Unirest.post("https://api.keytrac.net/anytext/enrol") .header("Authorization", "XXXXX") .header("Content-Type", "application/json") .body(jsonObject) .asJson(); var result = response.Body; var results = JsonConvert.DeserializeObject(response.Body); return results.OK; }