Fix in generating json format for monitoring