string MongoDB\BSON\fromJSON    ( string $json   )

MongoDB\BSON\fromJSONReturns the BSON representation of a JSON value

json (string)

JSON value to be converted.