getPacketById - to JSON