Setting Repo Secret as a JSON file

I have a space which utilizes Google Vision API as a part of the workflow. I need to add a JSON file which is the service key used by the client to authorize. how do I store this as a Repository secret in the space?