Skip to content

Instantly share code, notes, and snippets.

@rushi216
Created October 14, 2022 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rushi216/8ef350e6911bf1d3161fec454dccec2e to your computer and use it in GitHub Desktop.
Save rushi216/8ef350e6911bf1d3161fec454dccec2e to your computer and use it in GitHub Desktop.
$newContent = @()
$counter = 0
foreach ($item in $jsonContent)
{
Write-Host $counter
if($counter -le 0){
Write-Host "Adding"
$newContent = $newContent += $item
}
$counter++
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment