json packet modification