To be run at the global variable level:
JSON encode the full array and do a search for the site URL and see if you can find the opposite protocol than is defined by the site.
IE: Image stored in DB shows http, but site url is HTTPS.
If found, so a mass replace and then decode the json URL. This will allow people to get around issues when they play with HTTP and HTTPS.