Export workflow result as JSON

My workflow returns a Go struct as a result. tctl wf show displays the result as a Go-formatted object. Is there a way to export the result as a valid JSON?

It is certainly very confusing. The following commands prints history to stdout and saves json version to the file:

tctl wf show -wid greetings_9e445c47-0a84-44a5-b08b-58702927b78d --output_filename /tmp/history2

I filed an issue to get this addressed.

@maxim This command does save the history as a JSON. However, the data properties are base64 encoded, it seems, so they aren’t human-readable at all.

As data properties can be in any format (binary protobuf for example) the base64 encoding is required to not break JSON.