I am also facing the same issue. it works fine on local environment, when I hosting in production of AWS it throws the JSON input error.
Please verify and let me know.
I have verified the same issue in Devforum, please find the below url.
Please help me to fix this issue.