Fixing special character example

This commit is contained in:
Mike Farah
2021-02-11 10:58:40 +11:00
parent 30027a8cf4
commit a5ddbca97f
2 changed files with 12 additions and 4 deletions
+2 -2
View File
@@ -33,7 +33,7 @@ c: banana
```
## Special characters
Use quotes around path elements with special characters
Use quotes with brackets around path elements with special characters
Given a sample.yml file of:
```yaml
@@ -41,7 +41,7 @@ Given a sample.yml file of:
```
then
```bash
yq eval '."{}"' sample.yml
yq eval '.["{}"]' sample.yml
```
will output
```yaml