-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for multiple YAML documents / concatenated JSON #14
Comments
CC: @nebhale |
Until the feature is added here, the following alternative worked for me using the yq binary:
|
@sclevine i hit this today, thought i might look at it. could a second flag be provided to output as concatenated json or as json array? |
Hey @jghiloni, sounds reasonable to me, as long as the behavior without the extra flag is as described above. Could also make sense to have it work more generically. The flag could mean "output multiple documents as a list" when converting from YAML to any other format. In the future, a different flag could do the inverse ("interpret a list a multiple documents"). |
Notes:
YAML:
JSON:
(Also allowed:
{"a": 1}{"b": 2}{"c": 3}
)TOML and HCL should error.
Should we provide a flag to select a document by index?
The text was updated successfully, but these errors were encountered: