As a Application developer we are mostly interested in decoding the Payload to get User Details like mail-id, session time etc. So we start by splitting the JWT in 3 parts. Now, Decode Base64 encoded string to get Payload JSON. Above function will return Json string with Payload.