Use libraries to render JSON
Extract health check handling