Fixed JSON dump in sweep_rate_and_trap_study