To generate a google service JSON file for messenger,

1. You need to have generated a service JSOn file for your original app by following this link https://crea8social.com/help/android-app-setup/google-settings-instruction 

2. Click on 'add another app' to your existing project of your firebase account that contains your original app, then select Android.