How to add custom claims to JWT

I want to edit the JWT generated by adding custom claims. Is it possible now, I was not able to locate any specific docs related to it?

I found an interesting issue on Stack Overflow about this

Hopefully it helps: c# - JWT How to add custom claims and decode claims - Stack Overflow