# SubGroups

Parameter `SubGroups` defines the layout of subgroups of the `TextLineSpecification` object. It can be nested recursively defined.

## JSON Structure

**Location in template:**
```
TextLineSpecificationOptions[i]
    └── SubGroups
```

**Parent object:** [TextLineSpecification](https://www.dynamsoft.com/capture-vision/docs/core/parameters/file/auxiliary/text-line-specification.html) object

**Example:**

```json
{
    "SubGroups" : [
        {
            "Name": "tls_0_0",
            "ApplicableTextLineNumbers": "3-5",
            "SubGroups" : [
                {
                    "Name": "tls_0_0_0",
                    "ApplicableTextLineNumbers": "4"
                }
            ]
        },
        {
        }
    ]
}
```

> [!NOTE]
> - This snippet shows only the `SubGroups` parameter.
> - To use it, embed this parameter within a [TextLineSpecification](https://www.dynamsoft.com/capture-vision/docs/core/parameters/file/auxiliary/text-line-specification.html) object.
> - For the complete JSON structure, see:
>   - [Full JSON Structure](https://www.dynamsoft.com/capture-vision/docs/core/parameters/file/index.md#full-json-structure)
>   - [Minimal Valid JSON](https://www.dynamsoft.com/capture-vision/docs/core/parameters/file/index.md#minimal-valid-json-example)


<div align="center">
   <p><img src="../assets/text-line-group-example.png" alt="SubGroups example" width="80%" /></p>
</div>

## Parameter Details

| Parameter Details |
| :----------------------------------- |
| **Type**<br>*Array* |
| **Range**<br>Array of `TextLineSpecification` Object |
| **Default Value**<br>null. It means that there are no definitions in the subgroups of this `TextLineSpecification` object. |
