Create compressed binary file from JSON.