redis-cli output is buffered. It works in the case of LRANGE because
once that is finished, it quits and thus flushes output buffers.
Use the famous Linux utility `stdbuf` to make it line-buffered and
achieve what you want:
stdbuf -oL redis-cli psubscribe pattern | grep '^{' | jq ...
You can make it completely unbuffered using `stdbuf -o0` instead.
> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
redis-db+u...@googlegroups.com.
> To post to this group, send email to
redi...@googlegroups.com.
> Visit this group at
https://groups.google.com/group/redis-db.
> For more options, visit
https://groups.google.com/d/optout.