json reduction