title: convert output of a query to json in oracle 12c
body: <p>I have a query, the output is like this:</p>
  
  <pre><code>    1  2 3 4 5 6 7 8 9 10 11 12 13
      -  - - - - - - - - -   -  - -    
      40 20 22 10 0 0 0 0 0 0 0 0 0
  </code></pre>
  
  <p>I want to convert the output to one column and the column is like below:</p>
  
  <pre><code>    output
      -----------
   {"1":40,"2":20,"3":22,"4":10,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0}
  </code></pre>