I create a json key file for my GCP service account, since it's in JSON, it comes in this format:
{
"type": "service_account",
"project_id": "my-project",
"private_key_id": "abcde",
"private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCwrTSu4RbY2I1C\nBaLF7coPwrYBjPCz+p+r1toO3fhVbWh+IWFe0H0wDs8gGe1XUSzbE/ZxlKt5k2jz\n3qoIbPjK/UqM3JlEpwlwDmIzEQuArLMsiZ9hjIEkDn3WbUnYf8SZu4tSFNLLyYcb\nnl...",
...
}
I am trying to insert it into a 3rd party software that uses it, but it keep giving me key error. I am wondering if it's because the \n inside the private key is json format artifact and should be removed?
Also should I remove the -----BEGIN PRIVATE KEY-----
part? Is that also json format artifact?