Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/dtils/mod.ts>jsonEncode

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

Stringify json with an optional spacer. Wraps the native implementation

Parameters

data: unknown
optional
spacer = [UNSUPPORTED]

Returns

string