Go to the source code of this file.
|
| | sl2.jsonout.meta_key (key) |
| | Normalise a CLI metadata key: lowercase, spaces and dashes to underscores.
|
| |
| | sl2.jsonout.parse_meta (pairs, path=None) |
| | Build the environment block from repeated --meta key=value arguments and an optional JSON file.
|
| |
| | sl2.jsonout.jsonable (value) |
| | Make a parsed value safe for json.dump, without changing what it says.
|
| |
| | sl2.jsonout.character_json (slot_no, ch, report=None) |
| | One character as a JSON object: its slot number, then every field the parse actually set.
|
| |
| | sl2.jsonout.build_json (save, filename, meta=None, validate=False, data=None) |
| | Build the whole JSON document for a parsed save.
|
| |