flatten stats json