Created
May 6, 2016 01:58
-
-
Save omar-yassin/7ae39da34fb6488f9d76b224a3e2593b to your computer and use it in GitHub Desktop.
JQ: Hyphen/-/Special Chars in Keys
This file contains hidden or 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
Does't work: | |
jq '.foo.dude-yes' | |
Works | |
jq '.foo["dude-yes"]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment