Skip to main content
Module

x/denodb/deps.ts>Bson.EJSON

MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno
Go to Latest
namespace Bson.EJSON
import { Bson } from "https://deno.land/x/denodb@v1.0.40/deps.ts";
const { EJSON } = Bson;

EJSON parse / stringify API

Functions

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

Parse an Extended JSON string, constructing the JavaScript value or object described by that string.

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

Converts a BSON document to an Extended JSON string, optionally replacing values if a replacer function is specified or optionally including only the specified properties if a replacer array is specified.