Convert JSON data to querystring in C# GET request
What is the best way to convert a JSON object into querystrings to append to a GET Url? The POST is straight forward and gets read by my Web API backend. {Name: 'Mike' } = ?Name=Mike private static string MakeRequest(HttpWebRequest req, string data) { try { if (req.Method == Verbs.POST.ToString() || req.Method == Verbs.PUT.ToString() || req.Method == Verbs.DELETE.ToString()) { var encodedData = Encoding.UTF8.GetBytes(data); req.ContentLength = encodedData.Length; req.ContentType = "application/json"; req.GetRequestStream().Write(encodedData, 0, encodedData.Length); } using (var response = req