You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm new to rq so forgive me if this is a noob question. It is more of a question than a bug/issue. I looked around a bit and I could not find a solution, that's why I'm posting here. I have a json structure similar to this
What I want to do is to filter flatten the whole structure into a sort of csv. The selection criteria is to go through all the objects in the identifiers array, check if the identifier type == "NAME" and then output the e_id joined to the id for that identifier object on a row. So for the above the output would look like
So far, I'm stuck at rq 'at "result"|spread ' < rds_tickers.json . If I use the map function with the e_id field, I can't access the identifiers. If I use the flatMap function with the identifiers array, then i know longer have access to the e_id field. Any tips or pointers in the right direction would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
Hi, I'm new to rq so forgive me if this is a noob question. It is more of a question than a bug/issue. I looked around a bit and I could not find a solution, that's why I'm posting here. I have a json structure similar to this
What I want to do is to filter flatten the whole structure into a sort of csv. The selection criteria is to go through all the objects in the identifiers array, check if the
identifier type == "NAME"
and then output the e_id joined to the id for that identifier object on a row. So for the above the output would look likeSo far, I'm stuck at
rq 'at "result"|spread ' < rds_tickers.json
. If I use themap
function with the e_id field, I can't access the identifiers. If I use theflatMap
function with the identifiers array, then i know longer have access to the e_id field. Any tips or pointers in the right direction would be greatly appreciated.The text was updated successfully, but these errors were encountered: