Sign the Header and Payload with Json Private key using C#

I have to generate a Client assertion string signing with the json private key.

I have the private key in the private.json file. How do I use the private key in the file to sign the Header and payload?

When I search for it, I can find the method for signing with PEM or secret key only. Can anyone point to signing with Json Private key