send stats as json