VMware Cloud Community
BillStreet00
Enthusiast
Enthusiast

vRO8 - JSON Variable Question

I need to pass nested JSON to a WF but I'm having trouble finding data types for JSON.  Does anyone know where a list of variable types for vRO is located? What type I should be using?

Reply
0 Kudos
3 Replies
KForney224
Contributor
Contributor

When logged into vRO, you should be able to find the API Explorer at the bottom of the action list on the left.  That should break down the types within vRO and the plugins that might be applied.  

For JSON, you can use the type of 'Any' to pass data around, or you can use the JSON.stringify(string) to pass the content as a string and then JSON.parse(string) to read it as JSON again.

Reply
0 Kudos
xian_
Expert
Expert

JSON is text, ie. string.

Reply
0 Kudos
BillStreet00
Enthusiast
Enthusiast

Thanks!

I was able to get this to work with a minor change to the way I formatted my JSON.

 
 

 

Reply
0 Kudos