Export workflow result as JSON

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