Skip to main content
Module

x/web_bson/src/bson.ts>EJSON.deserialize

web_bson is a fork from mongodb/js-bson
Very Popular
Go to Latest
function EJSON.deserialize
import { EJSON } from "https://deno.land/x/web_bson@v0.2.4/src/bson.ts";
const { deserialize } = 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