Module

std/node/buffer.ts>Buffer#toJSON

Deno standard library
Go to Latest
method Buffer.prototype.toJSON
import { Buffer } from "https://dotland.deno.dev/std@0.110.0/node/buffer.ts";

Returns a JSON representation of buf. JSON.stringify() implicitly calls this function when stringifying a Buffer instance.

Returns

Record<string, unknown>