Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ルートは.
- ```
- [natasha3:~]$ echo '{"name": ["zzzz","xxxx"]}' | jq .
- {
- "name": [
- "zzzz",
- "xxxx"
- ]
- }
- ```
- .に名前入れると下の要素へ
- ```
- [natasha3:~]$ echo '{"name": ["zzzz","xxxx"]}' | jq .name
- [
- "zzzz",
- "xxxx"
- ]
- ```
- 配列入れれば配列が出る
- ```
- [natasha3:~]$ echo '{"name": ["zzzz","xxxx"]}' | jq .name[0]
- "zzzz"
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement