I need to escape the first pair of curly brackets but the second pair or the inner pair should not be escaped.
string.Format("@Neptune.ShowAlert(\{content:{0}\})", ex.Message);
I have tried the above but I get the "Unrecognized escape sequence" error.