Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function stringfyJson
import { stringfyJson } from "https://deno.land/x/authlete_deno@v1.2.3/src/util/util.ts";

Convert a JavaScript value to a JSON string. null is returned if failed to stringfy the value.

Note: this method is a wrapper method for JSON.stringify().

Parameters

value: any

Returns

string | null

A string the given value is converted to.