Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/dtils/json.ts>jsonEncode

The best unofficial library of utilities for Deno applications
Go to Latest
function jsonEncode
import { jsonEncode } from "https://deno.land/x/dtils@2.5.0/json.ts";

Stringify json with an optional spacer. Wraps the native implementation

Parameters

data: unknown
optional
spacer = [UNSUPPORTED]

Returns

string