Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/hex/src/data/deps.ts>mongo.Bson.EJSON.deserialize

An ecosystem delivering practices, philosophy and portability.
Go to Latest
function mongo.Bson.EJSON.deserialize
import { mongo } from "https://deno.land/x/hex@0.5.15/src/data/deps.ts";
const { deserialize } = mongo.Bson.EJSON;

Deserializes an Extended JSON object into a plain JavaScript object with native/BSON types

Parameters

ejson: Document
  • The Extended JSON object to deserialize
optional
options: Options
  • Optional settings passed to the parse method