I have a working knowledge of PowerShell arrays, however, when I was experimenting with ConvertTo-JSON, I came across a construction that I did not fully understand.
$Name = @" { array }"@
Question:
What is the significance of the @“…”@ construction?
Is there an online reference to this type of array?
Here is my full example:
$Input = @" { "Contacts": [ { "FirstName":"John" , "LastName":"Evans" , "Email":"john.evans@cp.com" }, { "FirstName":"Mira" , "LastName":"Cody" , "Email":"mira.cody@cp.com" }, { "FirstName":"Trevor" , "LastName":"Williams", "Email":"trevor.williams@cp.com" } ] } "@ $Victim = $Input | ConvertFrom-Json $Victim.Contacts | Format-Table FirstName, LastName, Email -AutoSize