PowerShell Parse JSON with header and nested items into lines
I have a JSON like this, { "TotalCount": 2, "Data": [ { "ID": 9663696221792, "Code": "08099991", "Items": [ { "Amount": 5.05, "LineNo": 1 }, { "Amount": 16.08, "LineNo": 2 } ] }, { "ID": 9663696221793, "Code": "08028001", "Items": [ {…