The Ultimate JQ Tutorial: Everything You Need to Know to Parse JSON Like a Pro

Поділитися
Вставка
  • Опубліковано 23 сер 2024

КОМЕНТАРІ • 23

  • @EdCardinal-MindThump
    @EdCardinal-MindThump 11 місяців тому +3

    Thank you for presenting the concepts up through pipes and map/select in a clear and memorable manner!

  • @danlockcuff
    @danlockcuff Рік тому +4

    I can't Thank You enough for this video. I was having a hard time grasping how to form the query I needed to extract the data from some Json data I am working with. I would love to see you explain Conditionals and Comparisons as well. Thanks Again!

  • @209_Violate
    @209_Violate 4 місяці тому

    youtube needs more examples to connect theory with pragmatism like yours. thanks for sharing, i love your teaching style.

  • @alik.ebrahim2043
    @alik.ebrahim2043 10 місяців тому +1

    Another awesome video! The real case examples are appreciated ... making it very clear. Thanks!

  • @stephenday4834
    @stephenday4834 4 місяці тому

    Clearly explained. I expected jq to be harder honestly. It's such an amazingly useful tool.

  • @Jfisher340
    @Jfisher340 Місяць тому

    Hahaha, he just had to open the issue, titled "Good Day". Curiosity got the better of me too, but he saved me the time to open a new tab. Great tut!

  • @zanoxie
    @zanoxie 7 місяців тому

    Great video! The building up of the jq topics was superb 🎉

  • @jsaenzMusic
    @jsaenzMusic 8 місяців тому

    Thank you for this! Re-writing a cli tool I created that used sed/awk to interact/manipulate json before sending back to an API 😫
    This is MUCH better!

  • @Linux.Learner
    @Linux.Learner 4 місяці тому

    FANTASTIC...

  • @hashkeeper
    @hashkeeper 6 місяців тому

    cool examples too, you could write some really cool code that organizes issue tracking, pull requests, commits ect from github on your own console of choice daaang

    • @EarthlyTech
      @EarthlyTech  6 місяців тому +1

      yeah, you could build your own TUI to GitHub. Might be a fun project.

    • @hashkeeper
      @hashkeeper 5 місяців тому

      @@EarthlyTech any project like that would be a great project for new job seekers looking for a foot in the door too. I keep returning to this tutorial, thanks. its a full scale explanation of jqs foundations, really really helpful.

  • @user-pj7sv2el1q
    @user-pj7sv2el1q 9 місяців тому

    Array indices are 0-based, so .[2] is the third element :-)

    • @EarthlyTech
      @EarthlyTech  9 місяців тому +1

      My Bad, thanks for watching though!

  • @gideonc
    @gideonc Рік тому +1

    can you explain this code pls:
    #!/usr/bin/env bash
    yabai -m query --spaces --display | \
    jq -re 'map(select(."is-native-fullscreen" == false)) | length > 1' \
    && yabai -m query --spaces | \
    jq -re 'map(select(."windows" == [] and ."has-focus" == false).index) | reverse | .[] ' | \
    xargs -I % sh -c 'yabai -m space % --destroy'