The way to sign XML documents with digital signatures is explained in this link: https://learn.microsoft.com/en-us/dotnet/standard/security/how-to-sign-xml-documents-with-digital-signatures
Is there a similar way to sign JSON files, (or any other text files)? I am looking for C# implementation