• FishFace@lemmy.world
    link
    fedilink
    arrow-up
    2
    arrow-down
    11
    ·
    2 days ago

    I asked an LLM to write a jq scriptlet for me today. It wasn’t even complicated, it just beat working it out/trying to craft the write string to search Stackoverflow for.

    • Beej Jorgensen@lemmy.sdf.org
      link
      fedilink
      arrow-up
      3
      ·
      2 days ago

      I tried and failed to get an LLM to write jq code to do a regex based matcher for finding if one json object was a subset of another.

      Gave up and learned it enough to get it going. jq is nutso powerful.

        • Beej Jorgensen@lemmy.sdf.org
          link
          fedilink
          arrow-up
          2
          ·
          17 hours ago

          Basically “does this JSON object contain at least these two properties, and is the value of one particular properties a string of digits followed by the letter ‘Z’”, for example.