var partyAdded = JObject.FromObject(new {
eventType = "v1/consignments/partyAdded";
propertyName = ""
correlationId = msg.GetServiceParameter("correlationId");
originatorId = msg.GetServiceParameter("originatorId");
carrierBookingNumber = JArray.Parse(msg.GetProperty("carrierBookingNumber")).ToArray()
orgPermissions = msg.GetServiceParameter("partyRole")+msg.GetServiceParameter("partyRef");
});
вывод должен выглядеть как
[
{
"eventType": "v1/consignments/partyAdded",
"correlationId": "...",
"originatorId": "...",
"carrierBookingNumber": "...",
"orgPermissions": [
{
"partyRole": "...",
"partyRef": "..."
}
]
},
...2 more events
]
*/
Большое спасибо:)