print data to send as json