Skip to main content
The Deno 2 Release Candidate is here
Learn more
method JsonUtil.prototype.serialize
import { JsonUtil } from "https://deno.land/x/sptaki@1.2.0/utils/JsonUtil.d.ts";

From object to string

Parameters

data: any

object to turn into JSON

optional
prettify: boolean

Should output be prettified

Returns

string

string