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
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Session | String | No | json | Session name. |
| Save to | File | No | Save the document to this file before closing; not saved when empty. | |
| Pretty | Boolean | No | false | Write indented JSON for reading. |
| Encoding | String | No | utf-8 | Text encoding of the saved file, e.g. utf-8, utf-8-bom, utf-16. |
Outputs
| Output | Type | What it is |
|---|---|---|
| value | Any | The document as the session held it. |
| path | File | The file written; empty when nothing was saved. |