Create NEW VERSION grep_AC-FIELD_write_to_JSONfile.sh

The new version with all the changes we talked about on wednesday.