skip to Main Content

Json – JQ – Groupby and concatenate text objects

Not quite getting it. I can produce multiple lines but cannot get multiple entries to combine. Looking to take Source JSON and output to CSV as shown: Source JSON: [{"State": "NewYork","Drivers": [ {"Car": "Jetta","Users": [{"Name": "Steve","Details": {"Location": "Home","Time": "9a-7p"}}]}, {"Car":…

VIEW QUESTION

How To convert array in string like to concate string with first array word like array[0].'->'.array[1] – PHP

$arr = ['Governance->Policies->Prescriptions->CAS Alerts', 'Users->User Departments->Department Hierarchy', 'Settings->Registrar->Finance', 'Logs->Second Opinion Log']; This is array and I want to convert it into string like below The string should be one it just concate in one string. Governance->Policies Governance->Prescriptions Governance->CAS Alerts Users->User…

VIEW QUESTION
Back To Top
Search