I would like to represent the following JSON structure in YAML.
[
{'text': 'Text1', 'url': 'Url1'},
{'text': 'Text2', 'url': 'Url2'},
{'text': 'Text3', 'url': 'Url3'},
]
I have tried without success:
-
text: Text1
url: Url1
-
text: Text2
url: Url2
-
text: Text3
url: Url3
In case it might be relevant, the structure is going to be used in Grav/Twig, although I think it is a pure YAML issue.