Serializes a document to its JSON text, validating it on the way out.
Compact rather than indented: the text is a wire and storage format, and a
caller who wants it readable can JSON.stringify(document, null, 2) — the
document is a plain JSON value, and its key order is already canonical.
Serializes a document to its JSON text, validating it on the way out.
Compact rather than indented: the text is a wire and storage format, and a caller who wants it readable can
JSON.stringify(document, null, 2)— the document is a plain JSON value, and its key order is already canonical.