title: ¿How can generate a json response without a sql query?
body: <p>I want to generate a this type of json:</p>
  
  <pre><code>{
      "message": [
          [
              "message":"ok"
          ]
      ]
  }   
  </code></pre>
  
  <p>, but im trying to do this without a sql query only using php only can do that of this way :</p>
  
  <pre><code>{
      "message": [
          [
              "ok"
          ]
      ]
  }
  </code></pre>
  
  <p>My code its the next...</p>
  
  <pre><code>$respuesta["message"] = array();
  if (mail($to,  utf8_decode($subject), utf8_decode($message), $header)) {
      $tmp = array();
      $tmp=["ok"];
      array_push($respuesta["message"], $tmp);
      echo json_encode($respuesta);
  } else {
      $tmp = array();
      $tmp=["no"];
      array_push($respuesta["message"], $tmp);
      echo json_encode($respuesta);
  }
  </code></pre>