Skip to main content
Module

x/mongo/mod.ts>Bson.EJSON.serialize

MongoDB driver for Deno
Extremely Popular
Go to Latest
function Bson.EJSON.serialize
import { Bson } from "https://deno.land/x/mongo@v0.31.0/mod.ts";
const { serialize } = Bson.EJSON;

Serializes an object to an Extended JSON string, and reparse it as a JavaScript object.

Parameters

  • The object to serialize
optional
options: Options
  • Optional settings passed to the stringify function