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
I tried this:
$ jq '.data[1].target_platform' < mata.txt error: Invalid character .data[1].target_platform ^ error: syntax error, unexpected IDENT, expecting $end .data[1].target_platform ^^^^^^^^ 2 compile errors
The input is a vanilla JSON file with entries like:
{ "target_country_code": [ "US" ], "day": "2012-09-21", "campaign_name": "Best Game Ever campaign-11", "spend": 663, "bundle_id": "com.foo.best_game", "target_manufacturer": [ "Samsung" ], "clicks": 12, "downloads": 6, "campaign_id": 11, "app_id": "12341", "currency": "USD", "impressions": 30, "target_platform": [ "Nexus S", "阿里云" ] }
The text was updated successfully, but these errors were encountered:
That should definitely parse. As a workaround you can do:
jq '.data[1]["target_platform"]' < mata.txt
Sorry, something went wrong.
a2643cc
No branches or pull requests
I tried this:
The input is a vanilla JSON file with entries like:
The text was updated successfully, but these errors were encountered: