Created
September 19, 2017 21:23
-
-
Save aasmith/21f39c87509ddc0e472af6f7d1f23278 to your computer and use it in GitHub Desktop.
How to decode nested json with jq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Typical use-case is decoding an AWS STS message. The DecodedMessage key contains escaped JSON. | |
jq '.DecodedMessage | fromjson | .' message.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also, I had exactly the same use case -- unescaping json from a decoded STS message :D
Thanks!