We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
syntax = "proto2"; package proto;
import "google/protobuf/descriptor.proto";
extend google.protobuf.MessageOptions { optional string url = 55555; }
message Graph { optional string name = 1; optional string version = 2; repeated Vehicle vehicle = 11; }
message Vehicle { optional string name = 1; optional string ip = 2; }
I have a Graph json, for example: { name:'1', version:'1.0.0', vehicle:[{ name:'vehicle-1', ip: '127.0.0.1' }, { name:'vehicle-2', ip: '127.0.0.1' }] }
is there a tool to transform above json to below protobuf text
name: '1' version: '1.0.0' vehicle { name:'vehicle-1' ip: '127.0.0.1' } vehicle { name:'vehicle-2' ip: '127.0.0.1' }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
syntax = "proto2";
package proto;
import "google/protobuf/descriptor.proto";
extend google.protobuf.MessageOptions {
optional string url = 55555;
}
message Graph {
optional string name = 1;
optional string version = 2;
repeated Vehicle vehicle = 11;
}
message Vehicle {
optional string name = 1;
optional string ip = 2;
}
I have a Graph json, for example:
{
name:'1',
version:'1.0.0',
vehicle:[{
name:'vehicle-1',
ip: '127.0.0.1'
},
{
name:'vehicle-2',
ip: '127.0.0.1'
}]
}
is there a tool to transform above json to below protobuf text
name: '1'
version: '1.0.0'
vehicle {
name:'vehicle-1'
ip: '127.0.0.1'
}
vehicle {
name:'vehicle-2'
ip: '127.0.0.1'
}
The text was updated successfully, but these errors were encountered: