I just use gron then grep for what I'm looking for.
def gron:
( path(..) as $p
| getpath($p)
| scalars
| "\($p | path_to_expr) = \(tojson)"
| println
);
Ex: $ fq gron <<< '{"a": [1,2,{"b": 3}]}'
.a[0] = 1
.a[1] = 2
.a[2].b = 3
Great for copy/paste into other expressions when poking around.