Send Exception message along with JSON

Send Exception message along with JSON inorder to get better idea what happened