Empty TOML table is an empty object

This commit is contained in:
Mike Farah
2024-02-08 13:31:56 +11:00
parent d4e16a413e
commit 5513ac8a7d
4 changed files with 44 additions and 19 deletions
+16
View File
@@ -104,3 +104,19 @@ owner:
suburb: nice
```
## Parse: Empty Table
Given a sample.toml file of:
```toml
[dependencies]
```
then
```bash
yq -oy '.' sample.toml
```
will output
```yaml
dependencies: {}
```