(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.