Skip to main content

$$jwtparse

Parses the JWT token to retrieve its claims

caution

This function does not validate the JWT. Only returns the claims.

Usage​

{
"$$jwtparse": /* jwt token */
}
"$$jwtparse:{input}"

Returns​

object (token's payload)

Arguments​

ArgumentTypeValuesRequired / Default ValueDescription
PrimarystringYesJWT token

Examples​

Input

Definition

Output

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjMifQ.oULSeVU4UsKJL5nxadn3y-HVxNLHeYcDk_YvSt7jb5k"
{ 
"$$jwtparse": "$"
}
{
"sub": "123"
}
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjMifQ.oULSeVU4UsKJL5nxadn3y-HVxNLHeYcDk_YvSt7jb5k"
"$$jwtparse:$"
{
"sub": "123"
}