I am posting a JSON request to a web api using the WebClient.UploadString method. The JSON string is created from parsing a text file into a JSON formatted string. How do I define a parameter in the request body working with my code below? It looks like I just add it to the end of my jsonPOSTString string variable?
string result = "";
using (var client = new WebClient())
{
result = client.UploadString(url, "POST", jsonPOSTString);
}