Timeline for How to get key value from object inside array JSON using PowerShell?
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 13, 2021 at 19:02 | comment | added | PMental | @user1557960 That's already there in the script, they're all stored in the $Output variable. | |
| Jul 11, 2021 at 21:14 | comment | added | Sivakumar Kayaroganam | @PMental Is there a way to collect and assign 'Rule' and 'RuleValue' values to a variable and later use it ? I found your answer useful but it is only printing output. | |
| Nov 24, 2020 at 17:13 | comment | added | PMental |
Force it into an array like this @($Content.RuleId.psobject.Properties).Length
|
|
| Nov 24, 2020 at 6:24 | comment | added | Naveen Kumar |
Hi @PMental just 1 thing how to count how many properties there $Content.RuleId.psobject.Properties.Length not working
|
|
| Nov 21, 2020 at 15:40 | vote | accept | Naveen Kumar | ||
| Nov 21, 2020 at 15:15 | history | answered | PMental | CC BY-SA 4.0 |