Added generic json checks and metrics