Export pnmc statistics to a JSON file.