{
    "properties": {
        "MultiROIs": {
            "items": {
                "properties": {
                    "param": {
                        "properties": {
                            "angle": {
                                "type": "number"
                            },
                            "center_x": {
                                "type": "number"
                            },
                            "center_y": {
                                "type": "number"
                            },
                            "cols": {
                                "type": "integer"
                            },
                            "gridtype": {
                                "enum": [
                                    "Regular"
                                ]
                            },
                            "height": {
                                "type": "number"
                            },
                            "rows": {
                                "type": "integer"
                            },
                            "shape": {
                                "enum": [
                                    "Rect",
                                    "Ellipse",
                                    "Square",
                                    "Circle",
                                    "Hexagon"
                                ]
                            },
                            "spacing": {
                                "type": "number"
                            },
                            "width": {
                                "type": "number"
                            }
                        },
                        "type": "object"
                    },
                    "rois": {
                        "items": {
                            "maximum": 63,
                            "minimum": 0,
                            "type": "integer"
                        },
                        "type": "array"
                    }
                },
                "type": "object"
            },
            "type": "array"
        },
        "ROIs": {
            "items": {
                "oneOf": [
                    {
                        "properties": {
                            "angle": {
                                "type": "number"
                            },
                            "center_x": {
                                "type": "number"
                            },
                            "center_y": {
                                "type": "number"
                            },
                            "group": {
                                "maximum": 63,
                                "minimum": 0,
                                "type": "integer"
                            },
                            "height": {
                                "type": "number"
                            },
                            "id": {
                                "maximum": 63,
                                "minimum": 0,
                                "type": "integer"
                            },
                            "type": {
                                "enum": [
                                    "Rect",
                                    "Ellipse"
                                ]
                            },
                            "width": {
                                "type": "number"
                            }
                        },
                        "required": [
                            "id",
                            "group",
                            "type",
                            "width",
                            "height",
                            "angle",
                            "center_x",
                            "center_y"
                        ],
                        "type": "object"
                    },
                    {
                        "properties": {
                            "group": {
                                "maximum": 63,
                                "minimum": 0,
                                "type": "integer"
                            },
                            "id": {
                                "maximum": 63,
                                "minimum": 0,
                                "type": "integer"
                            },
                            "points": {
                                "items": {
                                    "properties": {
                                        "x": {
                                            "type": "number"
                                        },
                                        "y": {
                                            "type": "number"
                                        }
                                    },
                                    "type": "object"
                                },
                                "type": "array"
                            },
                            "type": {
                                "enum": [
                                    "Poly"
                                ]
                            }
                        },
                        "required": [
                            "id",
                            "group",
                            "type",
                            "points"
                        ],
                        "type": "object"
                    }
                ]
            },
            "type": "array"
        }
    },
    "title": "O3D3xx ROI format",
    "type": "object"
}