Skip to main content
Module

x/cav/mod.ts>packJson

A server framework for Deno
Go to Latest
function packJson
Re-export
import { packJson } from "https://deno.land/x/cav@0.0.14/mod.ts";

Packs the value into a JSON string. This function is a one-liner:

return JSON.stringify(pack(value, packers || undefined), null, spaces);

Parameters

value: unknown
optional
packers: Packers | null
optional
spaces: string | number

Returns

string