title: How can I serialize a numpy array while preserving matrix dimensions?
body: <p><code>numpy.array.tostring</code> doesn't seem to preserve information about matrix dimensions (see <a href="https://stackoverflow.com/q/30697769/1156707">this question</a>), requiring the user to issue a call to <code>numpy.array.reshape</code>. </p>
  
  <p>Is there a way to serialize a numpy array to JSON format while preserving this information?</p>
  
  <p><strong>Note:</strong>  The arrays may contain ints, floats or bools.  It's reasonable to expect a transposed array.</p>
  
  <p><strong>Note 2:</strong>  this is being done with the intent of passing the numpy array through a Storm topology using streamparse, in case such information ends up being relevant.</p>