Permalink
Browse files

Make the `json()` function more generic by allowing any JSON string i…

…nstead of just JSON URLs.
  • Loading branch information...
1 parent ce82a18 commit 3d2532beb0547a6c5a926d118a4441e8b5bf35d0 @mathiasbynens committed Oct 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 .functions
View
@@ -10,7 +10,7 @@ function httpcompression() {
}
function json() {
- curl "$*" | python -mjson.tool | pygmentize -l javascript
+ python -mjson.tool <<< "$*" | pygmentize -l javascript
}
# All the dig info

0 comments on commit 3d2532b

Please sign in to comment.