reworked health-check json support. need to do the same for metrics/