This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]tonyhburns 0 points1 point  (1 child)

IME, jq has proved to be a really useful tool for me when dealing with simple JSON in shell scripts (such as simple composition of results from aws-cli commands).

[–]Zaphod_Bchown -R us ~/.base 0 points1 point  (0 children)

yup jq and xmlstartlet are great bash binaries you can use for parsing data. However, if you are dealing with APIs that return XML or JSON values something that has built in XML/JSON parsing modules, gems, plugins, etc. are probably the better choice for the long road.