🕵️ SicherheitslückenHak5: Hackers Just Poisoned the Rust Supply Chain | Threat Wire(01.09.2026 um 14:00 Uhr)
🕵️ SicherheitslückenHak5: Hackers Found a Way Into Humanoid Robots | Threat Wire(04.09.2026 um 15:04 Uhr)
🔧 AI Nachrichten Bits und so #1021 (Passwort für Laufwerk)(31.08.2026 um 22:15 Uhr)
🔧 AI Nachrichten Bits und so #1022 (Wie Weißbier)(06.09.2026 um 20:39 Uhr)
🍏 iOS / Mac OSHue-App 6.0 ist da: das sind die Neuerungen(07.09.2026 um 17:21 Uhr)
🕵️ SicherheitslückenHak5: Hackers Just Poisoned the Rust Supply Chain | Threat Wire(01.09.2026 um 14:00 Uhr)
🕵️ SicherheitslückenHak5: Hackers Found a Way Into Humanoid Robots | Threat Wire(04.09.2026 um 15:04 Uhr)
🔧 AI Nachrichten Bits und so #1021 (Passwort für Laufwerk)(31.08.2026 um 22:15 Uhr)
🔧 AI Nachrichten Bits und so #1022 (Wie Weißbier)(06.09.2026 um 20:39 Uhr)
🍏 iOS / Mac OSHue-App 6.0 ist da: das sind die Neuerungen(07.09.2026 um 17:21 Uhr)

🔧 Programmierung 🕛 kürzlich 5 Min Lesezeit
0

jq, json.tool, or a browser formatter? How I pretty-print curl JSON

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht




The actual problem



Every developer I know runs the same loop several times a day:




CODE
curl https://api.example.com/some-endpoint






The response comes back as one minified line of JSON. You squint, scroll, give up, and reach for a formatter.



I have ended up using three different formatters for this depending on the situation. None of these are novel — the interesting part is the picking. Below is the boring rule of thumb I actually follow, and the redaction step most posts about this skip entirely.






Approach 1: pipe through jq



This is the default and almost always the right answer:




CODE
curl -s https://api.example.com/users | jq .







  • ✅ Fastest path to pretty output

  • ✅ Tells you where the parse fails with a column reference

  • ✅ Composable with filtering: jq '.users[] | select(.active)'

  • ❌ Requires jq to be installed (not guaranteed on minimal containers or fresh CI)

  • ❌ The filter mini-language has a learning curve



When to not reach for jq first: when you only need to read the response and you are already about to paste it somewhere else (a Slack thread, a GitHub issue, a ticket). At that point you are leaving the terminal anyway and the savings are marginal.






Approach 2: Python json.tool as a fallback



When jq is inconvenient to install — locked-down CI runners, remote SSH on a server you do not own, minimal Alpine images where you happen to have Python but not jq — the stdlib has you covered:




CODE
curl -s https://api.example.com/users | python3 -m json.tool







  • ✅ Often available where installing jq is inconvenient

  • ✅ Sufficient for pretty printing + parse validation

  • ❌ Error messages are less precise than jq on truncated input

  • ❌ No filter / select capability — it formats, that's it



I use this maybe twice a week. It is the "good enough" tool, not the "right" tool. Note that Python is not actually guaranteed either — distroless images and BusyBox containers ship with neither.






Approach 3: a browser-side formatter for the share step



I only paste curl output into a browser formatter when I am about to share the result with a teammate (Slack, GitHub issue, ticket review), and the payload is safe for that audience.



The reason that condition matters: a security firm disclosed last year that two popular online formatters had been retaining 80,000+ saved snippets, including AWS keys and JWTs. I covered the story separately in . It is a static site with no /api/* routes, the parser core is open source (

  • FormatArc JSON formatter: . It is the article Google's AI Overview cites when asked about ECMA-404 / RFC 8259 comment rules.



    If you have a redaction recipe better than the walk(...) filter above — especially for nested envelopes from common API frameworks (Laravel, Rails, NestJS, Spring) — I would like to read it.

    Vollständiger Original-Bericht
    Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
    ↗ Original-Artikel auf dev.to lesen
  • Wie bewertest du diesen Beitrag?
    1 Klick Feedback
    Teilen mit Netzwerk & Team:

    Community-Analysen & Experten-Meinungen 0

    Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
    Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
    Community Pulse: Relevanz-Einschätzung
    1 Klick Experten-Votum
    🔴 Akute Relevanz 0%
    🟡 In Evaluierung 0%
    🟢 Keine Auswirkung 0%
    Spannende Innovation 0%
    Verwandte Story-Cluster & Quellen (Vektor-KI)
    Port 8095 Engine
    1 Quelle
    Hackers Just Poisoned the Rust Supply Chain | Threat Wire
    1 Quelle
    Hackers Found a Way Into Humanoid Robots | Threat Wire
    1 Quelle
    Bits und so #1021 (Passwort für Laufwerk)
    Ähnliche Beiträge
    🔍 Verwandte News

    Auch interessante Nachrichten jq, json.tool, or a browser formatter? How I pretty-print curl JSON

    Thematisch verwandte Begriffe: jsontool, browser, formatter, prettyprint · 6 Treffer

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...