Protobuf to JSON
Description
This operation converts events in Protobuf (Protocol Buffers) format into JSON. Protocol Buffers is a language-neutral, platform-neutral, extensible mechanism for serializing structured data. It's similar to JSON, but smaller and faster.
Data types
These are the input/output expected data types for this operation:
Input data
- Protobuf-formatted strings you want to transform into JSON. These must be encoded in Base64 format. You can use the To Base64 operation to transform your input strings.
Output data
- Resulting JSON-formatted strings.
Parameters
These are the parameters you need to configure to use this operation (mandatory parameters are marked with a *):
Example
Suppose you want to transform your Protobuf files into JSON. To do it:
In your Pipeline, open the required Action configuration and select the input Field.
In the Operation field, choose Protobuf to JSON.
In the Proto schema field, enter
syntax = "proto3"; message ExampleMessage { int32 id = 1; string name = 2; }In the Message type field, enter
ExampleMessageGive your Output field a name and click Save. Your Protobuf files will be transformed. For example:
Last updated
Was this helpful?

