Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

web_bson is a fork from mongodb/js-bson
Very Popular
Go to Latest
interface EJSON.Options
import { type EJSON } from "https://deno.land/x/web_bson@v0.2.5/src/bson.ts";
const { Options } = EJSON;

EJSON parse / stringify API

Properties

optional
legacy: boolean

Output using the Extended JSON v1 spec

optional
relaxed: boolean

Enable Extended JSON's relaxed mode, which attempts to return native JS types where possible, rather than BSON types

optional
deprecated
strict: boolean

Disable Extended JSON's relaxed mode, which attempts to return BSON types where possible, rather than native JS types