$_benchmark[$function] = microtime(true);
}
+ public static function json_decode($v) { return json_decode($v); }
+ public static function json_encode($v) { return json_encode($v); }
+
/*
* Function: object2array
*/
$this->is_html = strpos($content_type,'html') ? true : false;
$this->db->is_html = $this->is_html;
+ #if ( $format == 'json' and isset($_GET['json']) ) {
+ #bye($this->p('json'));
+ /*
+ if ( $format == 'json' and isset($_POST['json']) ) {
+ #bye($_POST['json']);
+ #$this->pset($this->json_decode($_POST['json']));
+ $_POST = $this->json_decode($_POST['json']);
+ #bye($this->p());
+ }
+
+ if ( $format == 'json' and $this->p('json') ) {
+ #bye($this->p('json'));
+ #bye($this->json_decode($this->p('json')));
+ #bye($this->json_decode('{"id": "2"}'));
+ $this->pset($this->json_decode($this->p('json')));
+ }
+ */
+
}
public function phpinfo_rows() {