- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm not sure why you have the square brackets in there.
This works
$contentneedtojson=@{
"name"="Vin Test package"
"description"="Vineeth Test package for export"
"contents"= "bc3f4cbc-a697-4da4-b275-2161bc0d561f"
}
$contentjson=$contentneedtojson |ConvertTo-Json
$contentjson
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference