public string GetStringFromBody(string xpath)
Does not handle the situation where response JSON has no root element.
Proposed solution is
doc= JsonConvert.DeserializeXmlNode(jsonOutput, "root");
Instead of
doc = JsonConvert.DeserializeXmlNode(response.Content);