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

#jq コマンドで要素全体を配列で囲う、もしくは逆に解除する例 #977

Open
YumaInaura opened this issue Mar 29, 2019 · 0 comments
Labels

Comments

@YumaInaura
Copy link
Owner

$ echo '{ "alice": "liddel", "bob": "jobs" }' | jq '[.]'
[
  {
    "alice": "liddel",
    "bob": "jobs"
  }
]
$ echo '{ "alice": "liddel", "bob": "jobs" }' | jq '[.]' | jq '.[]'
{
  "alice": "liddel",
  "bob": "jobs"
}
@YumaInaura YumaInaura changed the title #jq コマンドで配列を付与する、解除する例 #jq コマンドで要素全体を配列で囲う、もしくは逆に解除する例 Mar 29, 2019
@YumaInaura YumaInaura changed the title #jq コマンドで要素全体を配列で囲う、もしくは逆に解除する例 #jq コマンドで全体を配列で囲う、もしくは逆に解除する例 Mar 29, 2019
@YumaInaura YumaInaura changed the title #jq コマンドで全体を配列で囲う、もしくは逆に解除する例 #jq コマンドで要素全体を配列で囲う、もしくは逆に解除する例 Mar 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant