Forum Discussion
dmarquesgn
Jan 03, 2023Iron Contributor
Read value from variable after converting from JSON
Hi, I'm developing my first scripts to read data from Defender 365 Hunting queries and then use those values to be stored on a variable and sent over by email for some reports. For example, now I'v...
- Jan 05, 2023😁 The .Count method does a count and that's one. Perhaps putting 's around it would help?
Jan 04, 2023
$vulnData.Count should give you 100. You can set it to another variable if needed by using $number=$vulnData.Count
dmarquesgn
Jan 05, 2023Iron Contributor
Hi,
That was what I was expecting, but in fact when I do a $vulnData.Count I get a value of 1, instead of the value which is contained.
Am I missing something obvious here?
- Jan 05, 2023😁 The .Count method does a count and that's one. Perhaps putting 's around it would help?
- dmarquesgnJan 05, 2023Iron Contributor