I think it would be better if the script checked for the presence of this variable, then exited if it did not exist. This way you could do e.g.:

BASE_DIR=/blah/blah/ json_cron

In crontab instead of having to edit the file