0

I am executing a curl in my bash script which gives my a json output. I saw some posts on this but most of them are using jq , python or some external tool to parse the json body. Is there any way to parse a json body without using external tools.

xiawi
  • 1,772
  • 4
  • 19
  • 21
codec
  • 7,978
  • 26
  • 71
  • 127
  • 1
    You really want a JSON parser in shell script that is robust enough to handle *all* JSON syntax? – Ignacio Vazquez-Abrams Jul 17 '17 at 06:52
  • Short answer is, no, not effectively. You would either use a tool like jq in a bash script, or use a proper language, such as perl, python, ruby, ..., and use the available tools to perform the task. – grail Jul 17 '17 at 06:55

0 Answers0