Is it possible to gzip a JSON file on build?

I was wondering if it’s possible to gzip a JSON file on build. I have a json file in the source directory that I’m using to dynamically load content on certain pages via javascript. I have activate :gzip set in my build config and it’s working for everything except the json file. Is it possible to have it gzipped along with the other files?