From 295d041747d104b59b3a21db448da2a1e738868b Mon Sep 17 00:00:00 2001 From: Gabriel Dunne Date: Sun, 13 Nov 2011 22:55:23 -0800 Subject: [PATCH] new post --- content/code/osx_print_json | 28 ++++++++++++++++++++++++++++ pages/about | 8 +++++--- 2 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 content/code/osx_print_json diff --git a/content/code/osx_print_json b/content/code/osx_print_json new file mode 100644 index 0000000..c84c92d --- /dev/null +++ b/content/code/osx_print_json @@ -0,0 +1,28 @@ +title = print formatted JSON, XML from osx command line +date = mon, nov 14 2011 +tags = bash shell python json xml osx +-- + +via the command line: + +format json +
+cat unformatted.json | python -m json.tool
+
+ +save formated json to file +
+cat unformatted.json | python -m json.tool > formatted.json
+
+ +format json from clipboard +
+pbpaste | python -m json.tool
+
+ +format xml from clipboard +
+pbpaste | xmllint --format -
+
+`xmllint` is part of libxml2 and installed by default on OSX. + diff --git a/pages/about b/pages/about index 93cd4e5..1b89431 100644 --- a/pages/about +++ b/pages/about @@ -1,6 +1,6 @@ title = about -- -quilime is a codification of creative process and resources +a codification of creative process and resources by **gabriel dunne** ([www](http://gabrieldunne.com), [email](mailto:gdunne@quilime.com))
elsewhere: [github](http://github.com/quilime/), @@ -11,8 +11,10 @@ by **gabriel dunne** ([www](http://gabrieldunne.com), [email](mai [ffffound](http://ffffound.com/home/quilime/found/), [@quilime](http://twitter.com/quilime/) +quilime.com has taken many forms, originally operating as my online portfolio. +View an archive of all projects. +site update rss -quilime.com is running on plog, an minimal, open source cms. +built with plog, an minimal, opensource cms. - -- 2.34.1