In the Go API, is there a decent way to get a json...
# automation-api
c
In the Go API, is there a decent way to get a jsonfied response of a preview, ie the equivalent of pulumi preview --json?
l
There is no exact equivalent but you can get JSON a stream of detailed JSON events from the pulumi engine by specifying the
EventStream
preview option: https://github.com/pulumi/pulumi/blob/c3dc2d54abf85da811de0fbaa5e98f22b0f054c8/sdk/go/auto/optpreview/optpreview.go#L91
👍 1