kislyuk / yq

Command-line YAML, XML, TOML processor - jq wrapper for YAML/XML/TOML documents
https://kislyuk.github.io/yq/
Apache License 2.0
2.57k stars 82 forks source link

Object of type bytes is not JSON serializable. #140

Closed normanr closed 2 years ago

normanr commented 2 years ago

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 commented 2 years ago

Thank you for reporting. Fixed in v2.14.0.