Ensure that bash is used.
Where the location of bash can differ from one system to another system:
/bin/bash /usr/bin/bash /usr/local/bin/bash /opt/bin/bash etc

All systems (that I know of) have the env command in the same location
/usr/bin/env
Merge pull request #17 from uffejakobsen/master

JSON.sh depends on bash but has no shebang comment.