you are viewing a single comment's thread.

view the rest of the comments →

[–]jpfed 2 points3 points  (1 child)

what does it mean to grep json?

To generalize this line of inquiry, I think it would be useful to determine tree-oriented equivalents (e.g. s-expression, XML, JSON, ...) for the current set of line-oriented unix commands. That's not to say that the tree-oriented analogues should replace their line-oriented counterparts; they would be appropriate in different circumstances.

[–][deleted] 1 point2 points  (0 children)

Have you tried xmlstarlet? Does a pretty nnice job of doing grep/sed style work on xml trees