CI/CD Pipeline json file creation

I have a doubt in CI CD deployment,
When we need to deploy our UiPath project
We need to keep all our asset parameters in json file.
But how to pass the credentials values in that json file as string value and how to encrypt the username and password in that json file ?

Thanks in Advance