MongoDB\BSON\Document::fromJSON

(mongodb >=1.16.0)

MongoDB\BSON\Document::fromJSON — Construit une nouvelle instance de document depuis une chaîne de caractères JSON

Description

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

Convertit une chaîne de caractères » JSON étendue en sa représentation BSON.

Liste de paramètres

json (string)

La valeur JSON à convertir.

Valeurs de retour

Retourne une nouvelle instance de MongoDB\BSON\Document.

Erreurs / Exceptions

Voir aussi