Is it possible to have any kind of payload when using JOSE?
I was thinking of doing something like: {"alg":"ES512", "cty":"XML" }
and just make a string out of the XML file, on the server side I check cty and create the XML.
I'm pretty sure its possible, but I didn't see any example so I started thinking that maybe that's not the idea behind jose and that cty is only meant to indicate payload is a JWT or something related to jose.