JSON encode data to emit to prevent crazy socket stack errors