On Wed, Aug 26, 2015 at 9:15 AM, ilya <ilya.mailing.li...@gmail.com> wrote:
> Hi Rohit > > Thanks for doing great job in maitaining CloudMonkey. > > I'm curious, is there any way I can filter on json sub-block? > > For example, list virtualmachines id=123 filter=name,nic[ipaddress] > > I cant seem to figure out the way to get the content of sub-block without > using "grep". > > Thanks > ilya > > Ilya, I have recently discovered jq [1] and it does a very nice job at parsing json. I have not tried it with CloudMonkey output but I do use it with the output of AWS CLI and it does wonders. Cheers, Carlos [1] https://stedolan.github.io/jq/