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 T

object to convert to sjon

pretty PrettyJson

whether to prettify string output

Meta