array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'class.jsonserializable.php', 1 => 'JsonSerializable', ), 'up' => array ( 0 => 'book.json.php', 1 => 'JSON', ), 'prev' => array ( 0 => 'class.jsonexception.php', 1 => 'JsonException', ), 'next' => array ( 0 => 'jsonserializable.jsonserialize.php', 1 => 'JsonSerializable::jsonSerialize', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/json/jsonserializable.xml', ), 'extra_header_links' => array ( 'rel' => 'alternate', 'href' => '/manual/en/feeds/class.jsonserializable.atom', 'type' => 'application/atom+xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5 >= 5.4.0, PHP 7, PHP 8)
Objects implementing JsonSerializable can customize their JSON representation when encoded with json_encode().