add json output for throughput and loss rate