I have JSON string in following format.
{
"Request": {
"Header": { "Action": "Login" },
"DataPayload": {
"UserName": "user",
"Password": "password"
}
}
}
I need to deserialize the above JSON string without creating any Type or Anonymous type and I should be able to access properties like below in .NET.
Request.Header.Action : To get action value.
Request.DataPayload.UserName : To get username.