json to dynamic

https://stackoverflow.com/a/9326146/1591542

string.FirstWord()

string GetFirstWord(string target) => Regex.Match(target, @"^([\w]+)").Value; // но лучше так: target.Split(' ').FirstOrDefault();

Sending JSON strings with RestSharp

var restClient = new RestClient("http://mybaseaddress.com") var restRequest = new RestRequest("POST"); restRequest.Resource = "myendpoint"; restRequest.AddParameter("application/json", "{\"Some\":\"Json\"}", ParameterType.RequestBody); var response = restClient.Execute(restRequest);

Сopy file from embedded resource

www.000webhost.com