21 lines
3 KiB
Markdown
21 lines
3 KiB
Markdown
---
|
|
gitea: none
|
|
include_toc: true
|
|
---
|
|
[🇬🇧 (EN)](README.md) - [🇫🇷 (FR)](README.fr.md)
|
|
|
|
## Export configuration to JSON format
|
|
|
|
> [!NOTE]
|
|
>
|
|
> Exporting the configuration in JSON format makes it easier to process the configuration in an external tool, for example.\
|
|
> **Path**: json\
|
|
> *`disabled`*\
|
|
> **Disabled**: if json is not set in "[Select for output](#step.output)"
|
|
|
|
| Variable | Description | Default value | Type |
|
|
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------|
|
|
| **<a id="json.mandatory" name="json.mandatory">json.mandatory</a>**<br/>**Command line**: <br/>• --json.mandatory<br/>• --json.no-mandatory<br/>**Environment variable**: JSON.MANDATORY | Test mandatories variables before display in JSON.<br/>The configuration must be valid before exporting the data to JSON format. It's better to validate the values at the beginning of the process. | true if "[Configuration in output step is in read_write mode](#cli.read_write)" is false | [`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` |
|
|
| **<a id="json.get" name="json.get">json.get</a>**<br/>**Command line**: <br/>--json.get<br/>**Environment variable**: JSON.GET | Get value for a variable or a family.<br/>By default, the entire configuration is exported as JSON. It is possible to retrieve variables values from a defined family or directly the value of a variable.<br/>**Examples**: <br/>• family<br/>• family.variable | | [`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) |
|
|
|
|
|