Skip to main content
Module

x/mongo/mod.ts>Bson.UUID#toJSON

MongoDB driver for Deno
Extremely Popular
Go to Latest
method Bson.UUID.prototype.toJSON
import { Bson } from "https://deno.land/x/mongo@v0.31.2/mod.ts";
const { UUID } = Bson;

Converts the id into its JSON string representation. A 36 character (dashes included) hex string in the format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

Returns

string