Skip to main content
Module

x/denodb/deps.ts>Bson.EJSON.serialize

MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno
Go to Latest
function Bson.EJSON.serialize
import { Bson } from "https://deno.land/x/denodb@v1.0.40/deps.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: EJSON.Options
  • Optional settings passed to the stringify function