Hi I have n sum of objects for each Node like this:
NodeName : 11111
System.AreaId : 2375
System.AreaPath : Project
System.TeamProject : Project
System.NodeName : Project
System.AreaLevel1 : Project
Every node can have different objects in it. How can I split them to an arrays/strings without specifying the object name so I can create foreach separate object loop?
.psobject.Propertieson any object in PowerShell to get a collection of its public properties.about_*topics helps, though they don't tell the full story. There's also good information in the answers here on SO.Jsonfile consider to use theConvertFrom-Json -AsHashTableparameter as it gives you an easier access to the keys.