Just found out about fastgron, an awesome way to make json greppable #nerdstr

https://github.com/adamritter/fastgron

Reply to this note

Please Login to reply.

Discussion

Oh noice.

Handy! Thanks for sharing. Will be using this one.

Welcome back to nostr 🫑

Nice find!

I also recommend jq, which I’m guessing you already know about. https://jqlang.github.io/jq/

+1

jq is probably my most used cli util next to ripgrep

Sending that to myself for further fiddling.

Hmmm not sure how I feel about that. I forgot what I used with emacs. Been like 6months since I retired and stopped coding completely.

It is nice you posted something like this once a while nostr:npub1xtscya34g58tk0z605fvr788k263gsu6cy9x0mhnm87echrgufzsevkk5s , especially if it is your inner 'hobby' πŸ˜„

We need different account β€œstreams” i think

Sub-account feature that you've mentioned?

ya

Is it very different from jq? I like jq, but often struggle building the queries.

If you ever have an issue build queries, just show chatgpt what the json looks like and what you want it to look like and it will tell you the query to use

Looks very much like the output of Core Lightning cli when used with flag -F:

```

$ lightning-cli -F listchannels |head

channels[0].source=02e4ebfc64bf742e100f7ed1f4f9c4f3ce03109face9cf5eab58529bd3a5fc6ce9

channels[0].destination=02ff30e83896d453cfc89ff4dd06d23d793b7246f154c210324adc1d42c849ce74

channels[0].short_channel_id=771657x2489x1

channels[0].direction=0

channels[0].public=true

channels[0].amount_msat=3000000000

channels[0].message_flags=1

channels[0].channel_flags=2

channels[0].active=false

channels[0].last_update=1701194704

```

Very useful