Documentation
    Preparing search index...

    Function encodeSceneDocument

    • 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.

      Parameters

      Returns string

      compact JSON text in canonical key order

      FourError / TypeError exactly as validateSceneDocument