sending correct json from incoming/outgoing