-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Strip quotes from strings #286
Comments
Is the
|
Yes, it is. I read the manual, and the tutorial, and didn't find that, so On Fri, Feb 7, 2014 at 3:25 PM, Nico Williams notifications@github.comwrote:
|
Curious why
Such a common kind of thing that I'd rather have a |
@subfuzion - By default, jq expects the input to be JSON, and by default produces JSON as output. That corresponds nicely with the symmetry between the -R and -r options. And the "j" in "jq" is for JSON, after all. |
Let me just explain what task I was trying to accomplish:
I have a file A.json of a dict, and I want to generate a file B.txt,
with one key per line, and no quotation marks around the keys. I get close with
But I had to use cut to drop the leading and trailing quotes from the keys, and that only worked because they were youtube_ids and all the same length.
It would be great if there was a print command in jq that dropped the extra quotes that I don't need.
The text was updated successfully, but these errors were encountered: