PHP - Manual: MongoDB\BSON\Document::fromJSON
2025-02-27
(mongodb >=1.16.0)
MongoDB\BSON\Document::fromJSON — Construct a new document instance from a JSON string
Converts an » extended JSON string to its BSON representation.
json
(string)JSON value to be converted.
Returns a new MongoDB\BSON\Document instance.
官方地址:https://www.php.net/manual/en/mongodb-bson-document.fromjson.php