I have this JSON double quoted string and I want to insert variable idValue
inside
string json = @"
{
""Request"":
{
""ElementList"":
{
""id"": ""idValue""
}
}
}
In regular string this can be done by “+idValue+” ,but how I can do it here when I have
these double quotes? Thanks.
You can do this :
But personally I’d prefer to use a Json library to stringify my stuff.
Edit: Added missing quotation marks in the string.