I didn't pay attention to curl output and didn't see that it contains the IdToken key. I got every and each line of curl ugly output as Access Token but it has other keys also. Because it was in one-line and unformatted I didn't catch.
Solution:
curl -s https://github.com | jq
or
curl -s https://github.com | python3 -m json.tool