Checkout can not be completed because of unexpected character of the JSON data

How to fix the «red dot» AJAX error?