send median with json