fixed json export format from stats.py