sending backbone objects as json through socket