mitk.mxn.layout.save_preset#
- mitk.mxn.layout.save_preset(path, doc)#
Write
docas JSON to disk.Accepts either a typed
MxNLayoutDocument(preferred) or a raw mapping previously produced byMxNLayoutDocument.to_json(). For a typed document, callsMxNLayoutDocument.to_json()first. Output usesindent=2and explicit (schema-aligned) key ordering;sort_keysis not enabled because we wantversion, name?, groups, rootrather than alphabetic order.