JSON-to-Proto: Convert JSON to ProtoBuf Message
Inspired by JSON-to-Go
You can get a good experience from json2pb.vercel.app
You can click the button below to quickly deploy the application to Vercel.
JSON-to-Proto: Convert JSON to ProtoBuf Message Online.
Home Page: https://json2pb.vercel.app
JSON-to-Proto: Convert JSON to ProtoBuf Message
Inspired by JSON-to-Go
You can get a good experience from json2pb.vercel.app
You can click the button below to quickly deploy the application to Vercel.
valid input:
{"1": "hello", "2": "world"}
invalid output:
syntax = "proto3";
package your.project.v1;
option go_package = "your/project;projectv1";
message AutoGenerated {
string 2 = 0;
string 1 = 1;
}
the field names and field numbers are both invalid:
https://protobuf.dev/reference/protobuf/proto3-spec/#identifiers
https://godocs.io/google.golang.org/protobuf/encoding/protowire#MinValidNumber
valid input
{"a1": "hello", "a2": "world"}
result:
invalid field name 'a1'
a1 is valid for both JSON and ProtoBuf
https://protobuf.dev/reference/protobuf/proto3-spec/#identifiers
if you paste nothing happens
input
{"_": "hello", "a2": "world"}
output
syntax = "proto3";
package your.project.v1;
option go_package = "your/project;projectv1";
message AutoGenerated {
string _ = 1;
string a2 = 2;
}
must start with letter:
https://protobuf.dev/reference/protobuf/proto3-spec/#identifiers
Input
{"a1": "hello", "a2": "world"}
Output
message AutoGenerated {
string a1 = 0;
string a2 = 1;
}
Field number cannot be zero
https://pkg.go.dev/google.golang.org/protobuf/encoding/protowire#Number
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.