Curl and jq go to a conference
I’m presenting at the WPC 2025 Conference on December 3rd in Milan. My session topic is Feature Flag Management and Dynamic Configurations in C#. I will use a Web API as an example project, and since I’ll be using curl live to query the it, I’ll need to pipe responses through jq to obtain nicely formatted JSON for the audience. The problem with jq is that it crashes on 400s or 500s because the response body is empty in those cases. Error responses are inherent to the demo, and crashes are not the most desirable thing during a presentation. ...