<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Jq on BrainBit Latest Articles</title><link>https://brainbit.uk/tags/jq/</link><description>Recent content in Jq on BrainBit Latest Articles</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Tue, 30 May 2017 13:16:43 +0000</lastBuildDate><atom:link href="https://brainbit.uk/tags/jq/index.xml" rel="self" type="application/rss+xml"/><item><title>Quickly JSON.parse() on command line</title><link>https://brainbit.uk/posts/quickly-jsonparse-on-command-line/</link><pubDate>Tue, 30 May 2017 13:16:43 +0000</pubDate><guid>https://brainbit.uk/posts/quickly-jsonparse-on-command-line/</guid><description>I was trying to get some data out of etcd (kubernetes) and i found the value was returned as a string:
you can see the quotes in the beginning, so after playing with sed for a bit , getting me nowhere , i discovered the -r flag of jq so…
As you can see now you have a json object back that we can pass back to jq:
just that.</description></item></channel></rss>