added json dumping to replay view