mitk.mxn.layout.save_preset

Contents

mitk.mxn.layout.save_preset#

mitk.mxn.layout.save_preset(path, doc)#

Write doc as JSON to disk.

Accepts either a typed MxNLayoutDocument (preferred) or a raw mapping previously produced by MxNLayoutDocument.to_json(). For a typed document, calls MxNLayoutDocument.to_json() first. Output uses indent=2 and explicit (schema-aligned) key ordering; sort_keys is not enabled because we want version, name?, groups, root rather than alphabetic order.

Return type:

None

Parameters: