vin01
Expert
Expert

Failed to convert to json

Requesting someone to help on this,  This is not  PowerCLI specific, but I'm using PowerShell to interact vRA using restapi to create a blueprint(Reference blog#https://www.jonathanmedd.net/2016/01/create-blueprints-in-vra-7-via-rest-and-via-vro.html ). Below contents need to be converted to JSON but its showing error

Missing type name after '['.

$contentneedtojson=@{

"name"="Vin Test package"

"description"="Vineeth Test package for export"

"contents"=["bc3f4cbc-a697-4da4-b275-2161bc0d561f"]

}

$contentjson=$contentneedtojson |ConvertTo-Json

$contentjson

pastedImage_1.png

Regards Vineeth.K
Reply
0 Kudos