title: socket.io - is JSON a must to send an object
body: <p>I have a object in the frontend and I want to broadcast it to all connected clients. Can I send it as a mere object, the way I defined it? Or do I always have to stringyfy it as JSON object before sending?</p>
  
  <p>my object:</p>
  
  <pre><code>var myBox = {
           x: 400,
           y: 700,
           w: 231,
           h: 199,
           c: "red",
           ....
           }
  </code></pre>
  
  <p>do I need stringify?</p>
  
  <pre><code>var myBox  = JSON.stringify({
  
              x: 400,
              y: 700,
              ...
          });
  </code></pre>
  
  <p>At the moment I send it like this and the msg is a JSON:</p>
  
  <pre><code>socket.emit('message', msg);
  </code></pre>