JSON-Grep icon indicating copy to clipboard operation
JSON-Grep copied to clipboard

Valid JSON, can't figure out how to jgrep

Open jblaine opened this issue 13 years ago • 0 comments

I've tried a lot, but cannot figure out how to "show the tags field for those matching state=running". If anyone has any suggestions, I would love to hear them. I could not find any other way to contact someone, so am creating an issue. FWIW, the following passes arc90's JSON linter and is the output from "puppet node_aws list --render-as json"

[
 {
    "i-09387672": {
      "id": "i-09387672",
      "tags": "{\"Name\"=>nil, \"node-type\"=>\"bastion\"}",
      "dns_name": "ec2-23-21-146-98.compute-1.amazonaws.com",
      "state": "running",
      "created_at": "Sat Aug 18 18:31:48 UTC 2012",
      "keyname": "bld_admin"
    },
    "i-c8d3d5b2": {
      "id": "i-c8d3d5b2",
      "tags": "{\"Name\"=>\"graph-inserter-1\"}",
      "dns_name": null,
      "state": "stopped",
      "created_at": "Thu Sep 20 05:36:41 UTC 2012",
      "keyname": "jlekey"
    }
  }
]

jblaine avatar Dec 13 '12 14:12 jblaine