I am getting one JWT encoded access token from my API in response. But I am not able to decode it and get it in JSON format. I tried using the angular2-jwt library for it, b
Try and use the JavaScript build in function atob(). Kind of like this:
atob()
atob(token.split('.')[1])
Note: The token is actually a string.
If you want to know why i split the token here you should check this website jwt.io.