Hi All,

I am getting a weird issue, When I am trying to deserialize a JSON string, I am getting the empty value back. Is it something to do with the payload? Actually my payload consists of some encrypted data. Can this be a problem ?. I have checked, the structure and Json label as well, both are ok. 

Sample Json:

{
"dataKey": "7c8828496ffabf8b695254ssdsda4f761b9f417de170aa44fc19abfc78a3ee7f74af11eb33f8955f12af10e0e69476a2fd45a6",
"record": "MpQXS54MF+DSSUwKcJTpKVjYukbiw0mbQYRtR4N/fsdfsd/dddd/1w71XnlFKEaXsf/QHxUeXUMxa0QB/z9RglhjaEOT/S3CugCV2fg9e5QNNXGg+GglCV05v0peHnsFw7XiwVjN8x+z5SK7+VwSCkAo/ixP/hiqOSIwINnM5/G3PqIQZX8oILUqyJJyBKu1es1XyD3tXakPl/WHX+UXBgJlZZG6kc3T66w4MJl/2HwNy1Vch46Ohvhk+xsY+sHuKWi9hgm7zMf+ZVkX8BghlQAj4hDwsDyEESpNDRAFce4u67cs2eyFy9mnv4fV8haNPgfMMMNWwcnBsNuSVxGLVj5lHIW73xbayosmh5MV22hCJ8OJy/D1yHJLqySB22Yfr00JLcBiUj0Y6AR35h1p7kYAN5Trs6W2pFiE1rVeFtb9uI/nWTRHDpS7gB3fClp1xmGmrYIGu3UwjFoOu8yec58vx968AUCRKupurafLemumEpq3aVrMIVcnuLiWRNZ5JZA04l/S6SdlNpOYpJVp8O9xLHK0/j7Lj7Hkr4rZs9PWSP1YQgmqMQdxuXwdF55edePcP4fQScexLlpOTu25i5/s5Cw9Nn03uiuQeeRhK91h0uTtP/dgYG5QNKd32/d8nZCo+ft7JmGXqG7aQPZ2omRv0qc70iihcjGr+JYyyN1S+8YqCn9qG6gARyHrx2BXTRaZoKRwqNAHt+LTBOKO7HVp/nvPshGSMg+KM5FAqlomv2YIKfdoJpb45Pp7wEttgiB8GjdmMETvZdu7vre9UJQFGoF00zZY43f56BokDPb8YS+W2LGaqxlDEQi/1JgEUVbCvo2ri+FOKDda6EV2rQRvdO6fJbPcWJrVmM7KoWy0xIHqPwQGWfhugqNXUO2z9P0oiTGdYu5yb"
}


Any suggestion will be very helpful 


Thanks

Hi Pandey,

Yes, you need to decrypt your data and then try again.

 

 

BeingPandey wrote:

Hi All,

I am getting a weird issue, When I am trying to deserialize a JSON string, I am getting the empty value back. Is it something to do with the payload? Actually my payload consists of some encrypted data. Can this be a problem ?. I have checked, the structure and Json label as well, both are ok. 

Sample Json:

{
"dataKey": "7c8828496ffabf8b695254ssdsda4f761b9f417de170aa44fc19abfc78a3ee7f74af11eb33f8955f12af10e0e69476a2fd45a6",
"record": "MpQXS54MF+DSSUwKcJTpKVjYukbiw0mbQYRtR4N/fsdfsd/dddd/1w71XnlFKEaXsf/QHxUeXUMxa0QB/z9RglhjaEOT/S3CugCV2fg9e5QNNXGg+GglCV05v0peHnsFw7XiwVjN8x+z5SK7+VwSCkAo/ixP/hiqOSIwINnM5/G3PqIQZX8oILUqyJJyBKu1es1XyD3tXakPl/WHX+UXBgJlZZG6kc3T66w4MJl/2HwNy1Vch46Ohvhk+xsY+sHuKWi9hgm7zMf+ZVkX8BghlQAj4hDwsDyEESpNDRAFce4u67cs2eyFy9mnv4fV8haNPgfMMMNWwcnBsNuSVxGLVj5lHIW73xbayosmh5MV22hCJ8OJy/D1yHJLqySB22Yfr00JLcBiUj0Y6AR35h1p7kYAN5Trs6W2pFiE1rVeFtb9uI/nWTRHDpS7gB3fClp1xmGmrYIGu3UwjFoOu8yec58vx968AUCRKupurafLemumEpq3aVrMIVcnuLiWRNZ5JZA04l/S6SdlNpOYpJVp8O9xLHK0/j7Lj7Hkr4rZs9PWSP1YQgmqMQdxuXwdF55edePcP4fQScexLlpOTu25i5/s5Cw9Nn03uiuQeeRhK91h0uTtP/dgYG5QNKd32/d8nZCo+ft7JmGXqG7aQPZ2omRv0qc70iihcjGr+JYyyN1S+8YqCn9qG6gARyHrx2BXTRaZoKRwqNAHt+LTBOKO7HVp/nvPshGSMg+KM5FAqlomv2YIKfdoJpb45Pp7wEttgiB8GjdmMETvZdu7vre9UJQFGoF00zZY43f56BokDPb8YS+W2LGaqxlDEQi/1JgEUVbCvo2ri+FOKDda6EV2rQRvdO6fJbPcWJrVmM7KoWy0xIHqPwQGWfhugqNXUO2z9P0oiTGdYu5yb"
}


Any suggestion will be very helpful 


Thanks

If dataKey and record are of type text it should be possible to use it.
Those values are encrypted but the system wouldn't know if they are. In the end that could be the string you wanted to show because it had some meaning. I have used your sample Json on a module and got it to deserialize the json string successfully.

Attached is the oml