Oddbean new post about | logout
 Just found out about fastgron, an awesome way to make json greppable #nerdstr

https://cdn.jb55.com/s/09a8ded31f06e082.png

https://github.com/adamritter/fastgron 
 Oh noice.  
 Handy! Thanks for sharing. Will be using this one. 
 Welcome back to nostr 🫡 
 👀
nostr:nevent1qqsq83hgtpgf4ry3xygt7jdg02ntmvcnfkufz7x48tqymc6s6j9myscpzpmhxue69uhkummnw3ezuamfdejsygpjuxp8vd29p6ancknaztql3eajk52y8xkppfn7au7elkw9c68zg5psgqqqqqqssyrtys 
 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 @jb55 , 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