$page->toJson($callback = null)

Converts the entire page array into a json string

  • $callback (closure)
    Filter callback
  • return (string)

Example

<?php
$json = $page->toJson();
echo($json);
 ?>