title: how can i create json object from sql query using $wpdb->get_results in wordpress?
body: <p>I want json object in below format.i used ajax to get the data but not get the data in below json format.  </p>
  
  <pre><code> {
        "data": [
          [
            "Tiger Nixon",
            "System Architect",
            "Edinburgh",
            "5421",
            "2011/04/25",
            "$320,800"
          ]
        ]
      }
  </code></pre>