Skip to main content
The Deno 2 Release Candidate is here
Learn more
method JsonUtil.prototype.serializeAdvanced
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
replacer: (
this: any,
key: string,
value: any,
) => any

An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified.

optional
space: string | number

Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.

Returns

string

string