Home Blog CV Projects Patterns Notes Book Colophon Search

JSON in sh

17 Apr, 2014

Recently I've been writing bash scripts using md_code(curl) to test HTTP APIs. Now I don't know if this is a good idea or not (almost certainly not) but I wrote this to extract JSON from the results and output an evaluatable script that sets the JSON keys as md_code(sh) variables which can be md_code(eval)ed to use their values in the script:

undivert(`../file/json_in_sh/json_extract.py')
undivert(`../file/mit-license.txt')

Copyright James Gardner 1996-2020 All Rights Reserved. Admin.