All these echos will end up in the target file now, right? They probably won't be informative that way, and they'll keep the file from being valid json. I would remove them except for the error one, which could be modified like this so it sends to stderr

`echo "!!! An error occurred sending $request_filename to $scrimp_url !!!" >&2`