title: Dumping 2D Python array with Json
body: <p>I have a <code>numpy</code> array that I would like to dump with Json. The array looks like this:</p>
  
  <pre><code>array([['foo', 'bar', 'something', ...
          'more'],
          ['0.4', '0.7', '0.83', ...
          '0.3', '0.62', '0.51']]
  </code></pre>
  
  <p>and I would like to dump it on a string <strong>with Json</strong> as follows:</p>
  
  <pre><code>foo: 0.4
  bar: 0.7
  something: 0.51
  ...
  </code></pre>
  
  <p>I have tried with:</p>
  
  <pre><code>import jason
  my_string = json.dumps(my_array)
  </code></pre>
  
  <p>but it complains with:</p>
  
  <pre><code>"not JSON serializable"
  </code></pre>
  
  <p>Any thoughts on how to dump this on a string <strong>with Json</strong>?</p>
  
  <p>Update:</p>
  
  <p>Please not that I care about ordering, lines should be printed in the following order:</p>
  
  <pre><code>array[0,0] : array[0,1]
  array[1,0] : array[1,1]
  array[2,0] : array[2,1]
  # etc ...
  </code></pre>