added json format for stats