www.byjp.me/content/posts/tumblr-musings/pretty-json-in-the-terminal.md
JP Hastings-Spital b8cc9ee66d Remove leading newlines
This standardises all my markdown files to have no leading newline after the `---` that ends the frontmatter.

This makes display on Gemini (in which newlines matter) much more consistent!

I can't spot any errors with the regex I used here, but there may be one or two articles that change shape — hopefully I can spot them and fix them!
2024-06-20 13:40:54 +01:00

22 lines
591 B
Markdown

---
title: Pretty JSON in the terminal
date: 2013-03-20T16:02:00+00:00
draft: false
emoji: ✨
tags:
- terminal
- tools
- from-tumblr
---
[kaspertidemann.com](https://web.archive.org/web/20141024021149/http://www.kaspertidemann.com/pretty-printing-json-in-the-terminal/)
This was _exactly_ what I was looking for.
If you're investingating JSON returned from a web service, get the control you need with the terminal and [jsonpp](https://github.com/jmhodges/jsonpp):
```sh
brew install jsonpp
curl -u username:password http://awesome.com/stuff.json | jsonpp
```
BOOM. As they say.