You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for reporting. I submitted a pull request to go-prettyjson library. But I noticed some inefficiency and low coverage of the lib, I'm thinking of switching to different lib.
Description
gojq removes backslashes from double quoted string keys.
Version
gojq 0.11.2 (rev: HEAD/go1.15.2)
How to reproduce:
1 - Setup a file with a JSON containing keys that include doublequotes and require backslashes. Example:
2 - Run gojq in file.
gojq '.' issue.json
Expected behavior: It parses the file along with the backslashes, just like jq.
Actual behavior: It removes the backslashes, turning the JSON invalid.
The text was updated successfully, but these errors were encountered: