The command find . -name 'reddit.*.flattened.json' | jq '.' gives the error parse error: Invalid numeric literal at line 2, column 0.
Motivated by this question, I tried jq --arg.
But, find . -name 'reddit.*.flattened.json' | jq --arg filename $1 '. $filename' gives the same error.
Output of find query:
./reddit.opiates.flattened.json
./reddit.OurOverUsedVeins.flattened.json
./reddit.microdosing.flattened.json
./reddit.naloxone.flattened.json
./reddit.suboxone.flattened.json
./reddit.heroin.flattened.json
./reddit.OpiatesRecovery.flattened.json
./reddit.fentanyl.flattened.json
I can load each file with jq by typing jq '.' FILENAME so there is no error in the files.