add the old snippet md files
This commit is contained in:
parent
fc0dd204c7
commit
bcf8313a4b
110 changed files with 3048 additions and 0 deletions
15
old_snippets/pretty-print-json.en.md
Normal file
15
old_snippets/pretty-print-json.en.md
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue