title: Converting array of numbers to json in perl, getting array of strings
body: <p>I'm trying to convert an array of numbers to json:</p>
  
  <pre>
  
     $json = to_json("numbers_array" => \@numbers_array);
     print $json;
  </pre>
  
  <p>but the output I'm getting is:</p>
  
  <pre>
    {"numbers_array" => ["1","2","3"] }
  </pre>
  
  <p>I'm building up the array by adding elements using push(). How do I convert to json and retain the numeric type, so that the output is:</p>
  
  <pre>
    {"numbers_array" => [1,2,3]}
  </pre>
  
  <p>Thanks!</p>