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
This is simple to implement by using the Loaders and Dumpers from here:
https://github.com/fmenabe/python-yamlordereddictloader
The text was updated successfully, but these errors were encountered:
Managed to get it working. Here the two changed functions:
y2j() { python -c 'import sys, yaml, json, yamlordereddictloader; json.dump(yaml.load(sys.stdin, Loader=yamlordereddictloader.SafeLoader), sys.stdout, indent=4)' } j2y() { python -c 'import sys, yaml, json, yamlordereddictloader, collections; yaml.dump(json.load(sys.stdin, object_pairs_hook=collections.OrderedDict), sys.stdout, indent=4, default_flow_style=False, Dumper=yamlordereddictloader.SafeDumper)' }
Sorry, something went wrong.
No branches or pull requests
This is simple to implement by using the Loaders and Dumpers from here:
https://github.com/fmenabe/python-yamlordereddictloader
The text was updated successfully, but these errors were encountered: