implemented the sending of UPD packet with json data