Skip to main content
Module

x/mongo/deps.ts>EJSON.deserialize

MongoDB driver for Deno
Extremely Popular
Go to Latest
function EJSON.deserialize
import { EJSON } from "https://deno.land/x/mongo@v0.31.0/deps.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