I am getting this error with the following line of code,
int numberStored = 9;
record.VALUE = string.Format("{\"FIELDS\":[{\"ELEMENT_ID\":\"275887826\",\"VALUE\":\"{0}\"}]}", numberStored.ToString(), 0);
This works fine if i substitute out {0} and place the 9 in directly, but obviously I don't want it hard coded like this. The previous answers I can see for this problem do not seem to be helping me.