“SyntaxError: Unexpected end of JSON input” in WordPress checkout – how to debug?

We just ran into this problem with our site. The mentioned syntax error happened because we made some changes to our .htaccess file and there were spaces in between the lines. I know it’s a year late, but for the next person this might be helpful.