We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
For whatever reason, yaml allows maps and sequences to be map keys. These seem to be interpreted as empty string when producing json.
Version of yq: v4.45.1 Operating system: mac Installed via: homebrew
Input Yaml data1.yml:
{}: {x}: [x]:
Command The command you ran:
cat data1.yml | yq -o json .
Actual behavior
{ "": null, "": null, "": null }
Expected behavior
{ "{}": null, "{x}": null, "[x]": null }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
For whatever reason, yaml allows maps and sequences to be map keys. These seem to be interpreted as empty string when producing json.
Version of yq: v4.45.1
Operating system: mac
Installed via: homebrew
Input Yaml
data1.yml:
Command
The command you ran:
Actual behavior
Expected behavior
The text was updated successfully, but these errors were encountered: