First, enter the name of the level, then press "Add Part" and paste there exported JSON parts of the level (there can be an unlimited number of parts). Once entered press Merge and Copy. After copying the level, export it to the editor. The script takes the level information from the last added part.
The algorithm parses parts, transfers objects to a workpiece and outputs to the console.