Export state machine as a JSON file
Added import/export options