How would I pass an array into JsonConvert.SerializeObject? I have the following working JSON but am unable to get it into the serialize function because it needs an array.
"recipients": [
{
"address": "[email protected]"
},
{
"address": "[email protected]"
},
{
"address": "[email protected]"
}
]
I'm new to c# and any help would be great, thanks!
C# body:
recipients = new Array {
}
{and}. Is that a typo in the question?