Decoding Base64 json responses #3254
Answered
by
jcamiel
riteshnoronha
asked this question in
Q&A
|
Hi Everyone, I believe currently there is no way to do this, but wanted to verify. if my response is a base64 encoded json, there is no way to decode this response and then assert using jsonpath correct? Thanks |
Answered by
jcamiel
Jun 18, 2025
Replies: 3 comments 1 reply
|
Hi @riteshnoronha, |
0 replies
|
Hi @riteshnoronha, As a workaround you can use a temporary base64 decoding api server.
|
1 reply
|
Just revisiting this issue, you can chain filters and decodes from base 64 then chain with a JSONPath filter: The different "steps" of the chains are applied from left to right:
|
0 replies
Answer selected by
jcamiel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just revisiting this issue, you can chain filters and decodes from base 64 then chain with a JSONPath filter:
The different "steps" of the chains are applied from left to right:
bodyget HTTP response bytes and decodes it to a stringbase64Decodedecodes the string to bytesdecode "utf-8": decodes bytes to string using "utf-8" encodingjsonpath "$.name"apply a JSONPath query to a JSONbase64Decodeis available from Hurl 6.1.0