This code generates an exception of unexpected character. What is the problem with this code? Error is: An exception of type 'Newtonsoft.Json.JsonReaderException' occurred in Newtonsoft.Json.DLL but was not handled in user code
Additional information: Unexpected character encountered while parsing value: S. Path '', line 0, position 0.
HttpClient http = new System.Net.Http.HttpClient(); http.DefaultRequestHeaders.Add("accept", "Application/JSON"); var page = http.GetStringAsync(searchUrl); var o = (JObject)JsonConvert.DeserializeObject(page.ToString());