DJ Adams

Blog posts tagged "jq"

  1. Balancing context size and callable tool metadata with CAP's MCP adapter

    Some notes on both sides of the per_action_tool setting of CAP's MCP adapter plugin.

  2. Point free coding and function composition

    In this post I explore and show examples of the concepts of point free coding, of chains of functions through which data flows, and of function composition.

  3. Migrating GitHub issue based URL bookmarks to wallabag

    In this post I outline how I migrated my collection of reading list bookmarks, stored as issues in a GitHub repo, to wallabag which I'm now self-hosting.

  4. reduce - the ur-function

    Why I think of reduce as the ur-function, a primitive building block from which other functions like map and filter can be constructed.

  5. Easily add an explicit cds.requires.db to your CAP project's package.json

    Using jq to easily add an explicit cds.requires.db entry to a CAP project's package.json.

  6. CAP, CDS, CDL, CSN and jq - finding associations

    Using jq to parse association information from CSN, the internal representation of CDS definitions in CAP.

  7. Curating a collection of jq functions

    Curating a personal collection of jq functions and exploring how the jq module system works.

  8. Quick conversion of multiple values using with_entries in jq

    Demonstrating how jq's with_entries is a powerful combination of to_entries and from_entries for value conversion.

  9. A simple jq REPL with tmux, bash, vim and entr

    Building a simple jq REPL with tmux, Bash, Vim and entr for exploring JSON datasets.

  10. Selecting the related endpoints from a GitHub API response using jq's with_entries

    Using jq's with_entries to select the related API endpoints from a GitHub API response.

  11. Improving my interactive jq workflow with ijq, bash and tmux

    Improving my interactive jq workflow by capturing expressions from ijq for command line use.

  12. More on the comma as generator, and streaming with select in jq

    Exploring the subtleties of the comma as a generator and streaming with select in jq.

  13. Recognising patterns and embracing the stream

    Refactoring a jq implementation of an LED number display by recognising patterns and embracing the stream-oriented nature of the language.

  14. Learning from community solutions on Exercism - part 3

    Dwelling on more small details in jq solutions to Exercism exercises.

  15. Learning from community solutions on Exercism - part 2

    Continuing to learn from community solutions on Exercism's jq track.

  16. Learning from community solutions on Exercism - part 1

    Learning from community solutions on the jq track in Exercism, starting with some interesting patterns.

  17. Learning from exploring a question on jq

    Exploring different ways of achieving a simple JSON reformulation goal with jq and explaining my thinking.

  18. Array push with autovivification in jq

    Making a note about array push with autovivification in jq while working on Advent of Code.

  19. Extracting blog post dates from URLs with jq

    Using jq to extract and sort blog post dates embedded in URLs from a JSON array of GitHub issues.

  20. More Untappd data explorations with jq - my top ranking beer types (part 3)

    Wrapping up my Untappd data exploration with the final ranking of my favourite beer types.

  21. More Untappd data explorations with jq - my top ranking beer types (part 2)

    Continuing my Untappd data exploration to determine my top ranking beer types.

  22. More Untappd data explorations with jq - my top ranking beer types (part 1)

    Exploring my Untappd data to discover my top ranking beer types, starting with the data preparation.

  23. Untappd data with jq - my top brewery countries

    Exploring my Untappd checkin data with jq to find my top brewery countries.

  24. Understanding jq's SQL style operators JOIN and INDEX

    Exploring jq's JOIN and INDEX operators based on a Stack Overflow answer.

  25. Summing and grouping values with jq

    Here's yet another note-to-self on using jq, this time to transform a flat list of order totals and dates into a summary of total order values by year.

  26. Reshaping data values using jq's with_entries

    Exploring a JSON file of valid tutorial tags using jq's with_entries to reshape the data.

  27. Multiple level filters in jq

    Using jq to shape JSON representations of OData with filtering at two levels.

  28. Products by supplier in OData and jq

    Comparing OData resource requests with equivalent JSON shaping using jq.

  29. Exploring JSON with interactive jq

    Using ijq, the interactive jq wrapper, to explore JSON data with immediate visual feedback.

  30. JSON object values into CSV with jq

    I wanted to grab a CSV version of a JSON representation of an entityset in the Northwind OData service. Here's how I converted the JSON structure into CSV with jq, and along the way, I talk about arrays, objects, iterators, object indices, variables, identity, array construction and format strings.

  31. Exploring GitHub repo name distribution with jq

    Exploring the distribution of name prefixes for SAP-samples repositories on GitHub using jq.

  32. Converting strings to objects with jq

    Converting a list of fully qualified GitHub repository names into structured JSON objects with jq.

  33. Some thoughts on jq and statelessness

    Reflecting on jq's stateless nature after reading about zq as an alternative.

  34. Understanding jq's reduce function

    Understanding jq's reduce function by relating it to the equivalent in JavaScript.

  35. Exercism and jq

    Exploring what a jq track might look like on the Exercism learning platform.

  36. Getting BTP resource GUIDs with the btp CLI – part 2 - JSON and jq

    Exploring how the btp CLI supports JSON output and how to parse it with jq.

  37. Embracing jq and JSON

    Finding that exploring objects in a complex JSON structure is not as scary as I thought with jq.

  38. Learning by rewriting - bash, jq and fzf details

    One of the ways I learn is by reading and sometimes rewriting other people's scripts. Here I learn more about jq by rewriting a friend's password CLI script.

  39. Producing JSON with jq for appending issue titles

    Learning how to use jq to produce JSON while writing a script to enhance Thinking Aloud journal entry titles.

  40. Mass deletion of GitHub Actions workflow runs

    A simple cleanup script for mass-deleting GitHub Actions workflow runs using gh, jq, fzf and the GitHub API.

See all tags.