Added JSON exception handling and new conversion error message