Add keepalive output to json string