Skip to content
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

Object of type bytes is not JSON serializable. #140

Closed
normanr opened this issue Feb 7, 2022 · 1 comment
Closed

Object of type bytes is not JSON serializable. #140

normanr opened this issue Feb 7, 2022 · 1 comment

Comments

@normanr
Copy link

normanr commented Feb 7, 2022

When trying to parse a file with !!binary data:

example: !!binary SGVsbG8gd29ybGQhCg==

yq fails with:

yq: Error running jq: TypeError: Object of type bytes is not JSON serializable.
parse error: Unfinished JSON term at EOF at line 1, column 12

Adding -y or -Y doesn't help (although prevents the second line from being printed).

@kislyuk
Copy link
Owner

kislyuk commented Feb 21, 2022

Thank you for reporting. Fixed in v2.14.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants