Instantiate psobject directly

This commit is contained in:
Matt Martz
2014-06-17 15:44:06 -05:00
parent ac6ccb77cc
commit 14dab9870b
9 changed files with 12 additions and 12 deletions

View File

@@ -8,6 +8,6 @@ If ($args.Length -gt 0)
$data = 'FIXME';
$result = '{}' | ConvertFrom-Json;
$result = New-Object psobject;
$result | Add-Member -MemberType NoteProperty -Name fixme -Value $data;
echo $result | ConvertTo-Json;