JSON to Protobuf
Description
This operation converts JSON files into Protobuf (Protocol Buffers) format. 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
- Input JSON-formatted strings.
Output data
- Resulting Protobuf-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 JSON files into Protobuf format. To do it:
In your Pipeline, open the required Action configuration and select the input Field.
In the Operation field, choose JSON to Protobuf.
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 JSON data will be transformed. For example:
Last updated
Was this helpful?

