Getting 400 Error: redirect_uri_mismatch when trying to grant permission to Gmail SMTP plugin

Sorted out myself:

JSON file indeed was the issue
I went back to Google Developer Console and choose to create Credentials again it then gave me an option of OAuth client Id and later an option to add origin and redirect urls which sorted the issue.

enter image description here