add the old snippet md files

This commit is contained in:
Travis Shears 2025-06-05 16:20:57 +02:00
parent fc0dd204c7
commit bcf8313a4b
110 changed files with 3048 additions and 0 deletions

View file

@ -0,0 +1,15 @@
---
title: "pretty print json"
date: 2020-01-11T04:37:52+01:00
draft: false
snippet_types: ["curl", "json"]
---
```shell
$ curl -X GET https://some.json.endpoint.com | python -m json.tool
```
Need to check a API request but stuck reading a garbled mess. Try pipeing the result to python json.tool
source:
[stackoverflow](https://stackoverflow.com/questions/352098/how-can-i-pretty-print-json-in-a-shell-script)