LucD
Leadership
Leadership

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

Reply
0 Kudos