News for hackers. Stuff that matters.
Re:Why I’m dumping Firebase for Web by mbell on Wednesday August 09, 2017 @10:43AM (#14969464)
I would think something like this would work:

  cat input.json | jq -c --stream '. as $in | select(length == 2 and $in[0][0] == "users") | {}|setpath($in[0][1:]; $in[1])' > users.jsonlines
Output would me a file that looks like this:

  {"userid1":{"name":"user1"}}
  {"userid2":{"name":"user2"}}
Re:Why I’m dumping Firebase for Web by asadlionpk on Wednesday August 09, 2017 @11:10AM (#14969831)
I think I have tried something similar. I will try this one too. Thanks a lot!