Export ROI box to json file

Operating system: Windows
Slicer version: 4.10.0
Expected behavior: Implementation of bounding box for Segmentation using 3D slicer
Actual behavior:

What would you like the bounding box to do?
Would you like to fill a box shaped region with a segment?

Thank you for the response.

Yes, I would like to segment using a box(cuboid). And, I would like to export the box information in either json or fav formats.

You can place an annotation ROI (select ROI on the annotation toolbar and click in the image at the center and corner of the intended box). Then you can save the annotation as a .csv file (menu: File / Save) or write directly to a json file using this code snippet.