« MongoDB\BSON\Document::fromBSON
MongoDB\BSON\Document::fromPHP »

MongoDB\BSON\Document::fromJSON

(mongodb >=1.16.0)

MongoDB\BSON\Document::fromJSON — Construct a new document instance from a JSON string

説明

final static public function MongoDB\BSON\Document::fromJSON(string $json): MongoDB\BSON\Document

Converts an » extended JSON string to its BSON representation.

パラメータ

json (string)

JSON value to be converted.

戻り値

Returns a new MongoDB\BSON\Document instance.

エラー / 例外

参考

関連キーワード:
MongoDB   Document   document   instance   Construct   fromJSON   fromBSON   fromPHP   json   converted   Throws   Driver   Exception   mongodb   final   static   Converts   extended   representation   InvalidArgumentException   argument   parsing   errors   UnexpectedValueException   cannot
関連する関数・ページ:
mongodb-bson-document.fromphp   mongodb-bson-document.frombson   mongodb-bson-document.construct   class.mongodb-bson-document   mongodb-bson-document.get   mongodb-bson-document.offsetget