public toJson (mixed $variable)
Returns an JSON string of information about a single variable.
$foo = ["key" => "value"]; echo (new \Phalcon\Debug\Dump())->toJson($foo); $foo = new stdClass(); $foo->bar = 'buz'; echo (new \Phalcon\Debug\Dump())->toJson($foo);
Please login to continue.