Skip to main content

End session

Close a JSON session, optionally saving its document to a file first.

Command in the JSON toolkit · id ooa.json/end_session · 4 inputs, 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
SessionStringNojsonSession name.
Save toFileNoSave the document to this file before closing; not saved when empty.
PrettyBooleanNofalseWrite indented JSON for reading.
EncodingStringNoutf-8Text encoding of the saved file, e.g. utf-8, utf-8-bom, utf-16.

Outputs​

OutputTypeWhat it is
valueAnyThe document as the session held it.
pathFileThe file written; empty when nothing was saved.