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

x/hex/src/data/deps.ts>mongo.Bson.EJSON.Options

An ecosystem delivering practices, philosophy and portability.
Go to Latest
interface mongo.Bson.EJSON.Options
import { type mongo } from "https://deno.land/x/hex@0.5.15/src/data/deps.ts";
const { Options } = mongo.Bson.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