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
Okay, so first we want to get the columnHeaders as an array of names:
(.columnHeaders | map(.name)) as $headers
Then, for each row, we take the $headers as entries (if this doesn't mean anything to you, refer to the with_entries section of the manual) and we use those to create a new object, in which the keys are the values from the entries and the values are the corresponding values on the row for each of said entries. Tricky, I know.
Probably a simple question, but given the following JSON:
How can I convert this into a form like:
The text was updated successfully, but these errors were encountered: