I am using httpwebrequest to communicate with a restful service and I need to send a json. I want the json format to be configurable therefore I am trying to use a string template and format:
string template ="{ \"content\" : \"{0}\" }";
string.format(template,"my data");
But I get an exception of bad format. Any ideas on how to.create a template containing curly brackets?
Thanks ahead, Alon