`JSON.sh` uses the non-standard `egrep` command and also non-standard `gawk` to replace it if it is unavailable. You should use `grep -E` instead.