This is not an AMP problem, it is a syntax error, as indicated in the message. What looks like JSON, is sent / returned to / from the server. Are you sure you send / receive what you think you send / receive?
, JSON, HTML. AJAX, , HTML- , JSON.
, "" . , , ( ). , , HTML, 1 ....... "<".
HTML, , , .
, , !