I am developing an integration client for a web-service which is based on content-type = application/jose.
It means I have to send the message body in terms of JWS / JWT. Now, I have reviewed about JWS and JWT and found that it comprises of Header that will contain the algorithm details, a Payload that will contain the payload to be transferred but I haven't seen any example on the internet where actual payload is encoded in JWT? I only see fields like sub, iat, date time etc..
I want to know, that if my request body in terms of decoded JSON is:
{
"instruction_id": "1",
"account_code": "1234",
...
...
}
Then in this case, what will the payload be? I haven't found any big difference between JWS and JWT they both comprises of header, payload and signature (applied using private or public key on header.payload).
Can someone elaborate their actual difference? and respond to my payload query above?