WorldDocumentJson ( document )
Parameters
| document - world document handle |
Description
|
Returns a JSON snapshot of a world document. The snapshot is a caller-owned Application Data JSON value. Mutating the snapshot does not edit the document; submit a versioned transaction with ApplyWorldDocumentEdit. For the full story, see the Debug World Editor guide. Requires Extended mode. See also: ApplyWorldDocumentEdit, WorldDocumentRevision, CreateWorldDocument. |
Example
; WorldDocumentJson Example - Extended mode document=CreateWorldDocument("snapshot-example","Snapshot Example") If document=0 Then RuntimeError WorldDocumentError() snapshot=WorldDocumentJson(document) If snapshot=0 Then RuntimeError WorldDocumentError() Print JsonStringify(snapshot,2) FreeJson snapshot FreeWorldDocument document End
Index