【发布时间】:2019-12-22 12:20:29
【问题描述】:
我想将以下 JSON 对象转换为类成员: {"notificationId":"29397081-d4ed-4d2a-a672-4e875eabf535", "eventType":"net.authorize.customer.paymentProfile.deleted", “事件日期”:“2019-08-15T15:36:34.7856727Z”, "webhookId":"183a9022-510b-4801-a50c-75ef7310844f", “有效载荷”: {"customerProfileId":1920340068, "entityName":"customerPaymentProfile", "id":"1833395942"}}
我尝试过使用: 命名空间事务_
Public Class Payload
Public customerProfileId As String = ""
Public entityName As String = ""
End Class
Public Class transaction
Public notification As String = ""
Public eventType As String = ""
Public eventDate As DateTime
Public webhookId As String = ""
Public payload As Payload = Nothing
End Sub
End Class
结束命名空间
没用。 请推荐
【问题讨论】:
标签: c# asp.net json vba webhooks