Unexpected end of JSON input error on terraform plan

Hi!
I am trying to provision an EMR cluster through terraform on a Windows VDI using cygwin. The codebase was developed for Mac/Linux and is working fine. But when we try to do a terraform plan, it throws this error : unexpected end of JSON input. The code is trying to echo secret_string from aws_secretsmanager_secret_version.api_keys. Has anyone come across an error like this?