<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.mongodb-bson-utcdatetime.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'mongodb-bson-utcdatetime.jsonserialize.php',
    1 => 'MongoDB\\BSON\\UTCDateTime::jsonSerialize',
    2 => 'Returns a representation that can be converted to JSON',
  ),
  'up' => 
  array (
    0 => 'class.mongodb-bson-utcdatetime.php',
    1 => 'MongoDB\\BSON\\UTCDateTime',
  ),
  'prev' => 
  array (
    0 => 'mongodb-bson-utcdatetime.construct.php',
    1 => 'MongoDB\\BSON\\UTCDateTime::__construct',
  ),
  'next' => 
  array (
    0 => 'mongodb-bson-utcdatetime.todatetime.php',
    1 => 'MongoDB\\BSON\\UTCDateTime::toDateTime',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/mongodb/bson/utcdatetime/jsonserialize.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="mongodb-bson-utcdatetime.jsonserialize" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">MongoDB\BSON\UTCDateTime::jsonSerialize</h1>
  <p class="verinfo">(mongodb &gt;=1.2.0)</p><p class="refpurpose"><span class="refname">MongoDB\BSON\UTCDateTime::jsonSerialize</span> &mdash; <span class="dc-title">Returns a representation that can be converted to JSON</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-mongodb-bson-utcdatetime.jsonserialize-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">final</span> <span class="modifier">public</span> <span class="methodname"><strong>MongoDB\BSON\UTCDateTime::jsonSerialize</strong></span>(): <span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span></div>

 </div>


 <div class="refsect1 parameters" id="refsect1-mongodb-bson-utcdatetime.jsonserialize-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mongodb-bson-utcdatetime.jsonserialize-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="simpara">
   Returns data which can be serialized by <span class="function"><a href="function.json-encode.php" class="function">json_encode()</a></span> to
   produce an extended JSON representation of the
   <span class="classname"><a href="class.mongodb-bson-utcdatetime.php" class="classname">MongoDB\BSON\UTCDateTime</a></span>.
  </p>
  
  <blockquote class="note"><p><strong class="note">注意</strong>: 
   <span class="simpara">
    The output is consistent with the <span class="function"><a href="function.mongodb.bson-tojson.php" class="function">MongoDB\BSON\toJSON()</a></span>
    function, which uses the driver-specific legacy extended JSON format. This
    does not necessarily match the
    <a href="https://github.com/mongodb/specifications/blob/master/source/extended-json/extended-json.md#relaxed-extended-json-example" class="link external">&raquo;&nbsp;relaxed</a>
    or <a href="https://github.com/mongodb/specifications/blob/master/source/extended-json/extended-json.md#canonical-extended-json-example" class="link external">&raquo;&nbsp;canonical</a>
    extended JSON representations used by
    <span class="function"><a href="function.mongodb.bson-torelaxedextendedjson.php" class="function">MongoDB\BSON\toRelaxedExtendedJSON()</a></span> and
    <span class="function"><a href="function.mongodb.bson-tocanonicalextendedjson.php" class="function">MongoDB\BSON\toCanonicalExtendedJSON()</a></span>, respectively.
   </span>
  </p></blockquote>

 </div>


 <div class="refsect1 errors" id="refsect1-mongodb-bson-utcdatetime.jsonserialize-errors">
  <h3 class="title">错误／异常</h3>
  <ul class="simplelist">
   <li>Throws <span class="classname"><a href="class.mongodb-driver-exception-invalidargumentexception.php" class="classname">MongoDB\Driver\Exception\InvalidArgumentException</a></span> on argument parsing errors.</li>
  </ul>
 </div>


 <div class="refsect1 seealso" id="refsect1-mongodb-bson-utcdatetime.jsonserialize-seealso">
  <h3 class="title">参见</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="jsonserializable.jsonserialize.php" class="methodname" rel="rdfs-seeAlso">JsonSerializable::jsonSerialize()</a> - 指定需要被序列化成 JSON 的数据</span></li>
   <li><span class="function"><a href="function.json-encode.php" class="function" rel="rdfs-seeAlso">json_encode()</a> - 对变量进行 JSON 编码</span></li>
   <li><span class="function"><a href="function.mongodb.bson-tocanonicalextendedjson.php" class="function" rel="rdfs-seeAlso">MongoDB\BSON\toCanonicalExtendedJSON()</a> - Returns the Canonical Extended JSON representation of a BSON value</span></li>
   <li><span class="function"><a href="function.mongodb.bson-torelaxedextendedjson.php" class="function" rel="rdfs-seeAlso">MongoDB\BSON\toRelaxedExtendedJSON()</a> - Returns the Relaxed Extended JSON representation of a BSON value</span></li>
   <li><a href="https://www.mongodb.com/docs/manual/reference/mongodb-extended-json/" class="link external">&raquo;&nbsp;MongoDB Extended JSON</a></li>
  </ul>
 </div>


</div><?php manual_footer($setup); ?>