我想以以下格式从 c# 发送 Json 字符串以用于 IOS 推送通知:
{
"pushType": "Notification",
"notifications": [
{
"notificationId": 1,
"notificationTitle": "Notification 1",
"notificationText": "You are reading your notification 1",
"notificationExpiryDate": "yyyy-MM-dd"
},
{
"notificationId": 2,
"notificationTitle": "Notification 2",
"notificationText": "You are reading your notification 2",
"notificationExpiryDate": "yyyy-MM-dd"
},
{
"notificationId": 3,
"notificationTitle": "Notification 3",
"notificationText": "You are reading your notification 3",
"notificationExpiryDate": "yyyy-MM-dd"
}
]
}
我试图发送简单的消息,但无法发送字符串数组。请帮我解决这个问题,因为我在过去两天一直在苦苦挣扎。