I have received the following json
at my client application:
[{
"ErrorCode" : 0,
"ErrorMessage" : "The operation completed successfully."
}, {
"configured" : true,
"id" : "abc"
}]
Properties ErrorCode
and ErrorMessage
belong to the ErrorInfo
-class and the properties configured
and id
belong to the Data
-class.
I need to deserialize this JSON so that I can populate these two classes ErrorInfo
and Data
. How can I deserialize this json code to C#?