`numpy.array.tostring` doesn't seem to preserve information about matrix dimensions (see [this question](https://stackoverflow.com/q/30697769/1156707)), requiring the user to issue a call to `numpy.array.reshape`. 

Is there a way to serialize a numpy array to JSON format while preserving this information?

**Note:** The arrays may contain ints, floats or bools. It's reasonable to expect a transposed array.

**Note 2:** 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.