Proper handling of JSON messages and added parsing for multiline errors