i am trying to display a notification of an error message but what i am seeing is the actual json data with formatting.
notificationMsg({ text: data.responseText, type: 'error', hide: false });
result displayed is:
{"Title":"Error","Message":"Error with Account login","Type":3,"Data":null,"Hide":false,"IsClientMessage":true,"TypeString":"error"}
i would like for it to appear like such:
Error
Error with Account login
i tried:
notificationMsg({ text: JSON.parse(data.responseText), type: 'error', hide: false });
but the outcome was
[Object Object]
How can i properly display the error message without the formatting?