toJSONString

Convert an instance of some type T directly into a json-formatted string.

string
toJSONString
(
T
)

Parameters

T

type of object to convert

obj
Type: T

object to convert to sjon

pretty

whether to prettify string output

Meta