Skip to main content
Module

std/node/buffer.ts>Buffer#toJSON

Deno standard library
Go to Latest
method Buffer.prototype.toJSON
import { Buffer } from "https://deno.land/std@0.114.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>