OK, I can usually get PowerShell to do what I want but I'm no programmer and this is starting to go beyond my knowledge but it is really bugging me as it seems so simple.
We connect to several supplier Webservies to retrieve usage data, up to now I have managed to get powershell to manipulate it etc. and output the data in a compatible format for our billing system. This time the API it returning very nested JSON Data. Which I don't seem to be able to flatten.
So:
Powershell
$report=Invoke-WebRequest-URI$reportURL-MethodGet-Headers$headersCall|ConvertFrom-Json
Powershell
{"timestamp":1473550296123,"companySeatUsages":[{"timestamp":1473550296123,"companyName":"ABC Ltd","productSeatUsages":[{"product":"psbWorkstationSecurity","summary":{...