How can brackets be escaped in using string.Format.
For example:
String val = \"1,2,3\"
String.Format(\" foo {{0}}\", val);
Came here in search of how to build json strings ad-hoc (without serializing a class/object) in C#. In other words, how to escape braces and quotes while using Interpolated Strings in C# and "verbatim string literals" (double quoted strings with '@' prefix), like...
var json = $@"{{""name"":""{name}""}}";